Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 6c9b84d817
Fetching contributors…

Cannot retrieve contributors at this time

37 lines (30 sloc) 0.572 kb
#ifndef Polukili_Timer_h
#define Polukili_Timer_h
#include <gctypes.h>
using namespace std;
namespace Polukili
{
/**
* Timer Class
*/
class Timer
{
public:
//Timer is automatically started on creation
Timer();
~Timer();
void start();
void stop();
bool isStarted();
void reset();
u32 getMilliseconds();
u32 getSeconds();
float getDefaultFreq();
private:
bool started;
long long startTime;
long long stopTime;
long long getDiffTicks();
};
}
#endif
Jump to Line
Something went wrong with that request. Please try again.