2013-08-30 04:06:41 -04:00
|
|
|
|
|
|
|
// Timer.h
|
|
|
|
|
|
|
|
// Declares the cTimer class representing an OS-independent of retrieving current time with msec accuracy
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-06-14 09:06:06 -04:00
|
|
|
#pragma once
|
|
|
|
|
2013-08-30 04:06:41 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-06-14 09:06:06 -04:00
|
|
|
class cTimer
|
|
|
|
{
|
|
|
|
public:
|
2013-08-30 04:06:41 -04:00
|
|
|
cTimer(void);
|
2012-06-14 09:06:06 -04:00
|
|
|
|
2013-08-30 04:06:41 -04:00
|
|
|
// Returns the current time expressed in milliseconds
|
|
|
|
long long GetNowTime(void);
|
2012-06-14 09:06:06 -04:00
|
|
|
private:
|
|
|
|
|
2013-08-30 04:06:41 -04:00
|
|
|
#ifdef _WIN32
|
|
|
|
LARGE_INTEGER m_TicksPerSecond;
|
|
|
|
#endif
|
|
|
|
} ;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|