timer.h 355 Bytes
Newer Older
qon's avatar
qon committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef TIMER_H
#define TIMER_H

class HighResTimer {

public:
	HighResTimer();
	~HighResTimer();
	void Start();
	void Stop();
	void Reset();
	void ResetStart();
	double GetElapsedTime();
	double GetCurrentElapsedTime();

private:
	static double Frequency;
	static double GetFrequency();

	double ElapsedTime;
	double StartTime;
	int running;
}; 

#endif