absence_thelab

view src/common/timing.h @ 0:1cffe3409164

initial commit
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 23 Oct 2014 01:46:07 +0300
parents
children
line source
1 #ifndef _TIMING_H_
2 #define _TIMING_H_
4 #include <windows.h>
6 class Timer {
7 private:
8 LARGE_INTEGER start, freq;
9 LARGE_INTEGER PauseTime, LastStop;
10 bool paused;
12 public:
14 Timer();
16 void Start();
17 void Stop();
18 void Resume();
19 unsigned long GetTicks() const;
20 unsigned long GetMilliSec() const;
21 unsigned long GetSec() const;
22 };
24 #endif //_TIMING_H_