absence_thelab

diff 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 diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/common/timing.h	Thu Oct 23 01:46:07 2014 +0300
     1.3 @@ -0,0 +1,24 @@
     1.4 +#ifndef _TIMING_H_
     1.5 +#define _TIMING_H_
     1.6 +
     1.7 +#include <windows.h>
     1.8 +
     1.9 +class Timer {
    1.10 +private:
    1.11 +	LARGE_INTEGER start, freq;
    1.12 +	LARGE_INTEGER PauseTime, LastStop;
    1.13 +	bool paused;
    1.14 +
    1.15 +public:
    1.16 +
    1.17 +	Timer();
    1.18 +	
    1.19 +	void Start();
    1.20 +	void Stop();
    1.21 +	void Resume();
    1.22 +	unsigned long GetTicks() const;
    1.23 +	unsigned long GetMilliSec() const;
    1.24 +	unsigned long GetSec() const;
    1.25 +};
    1.26 +
    1.27 +#endif	//_TIMING_H_
    1.28 \ No newline at end of file