2016-09-16 20:10:40 +00:00
|
|
|
#pragma once
|
2021-04-12 06:34:26 +00:00
|
|
|
#include <stdint.h>
|
2016-09-16 20:10:40 +00:00
|
|
|
|
|
|
|
class HighResTimeStamp
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
HighResTimeStamp();
|
2022-10-03 08:04:42 +00:00
|
|
|
HighResTimeStamp & SetToNow(void);
|
2016-09-16 20:10:40 +00:00
|
|
|
uint64_t GetMicroSeconds(void);
|
|
|
|
void SetMicroSeconds(uint64_t MicroSeconds);
|
|
|
|
|
|
|
|
private:
|
|
|
|
#ifdef _WIN32
|
|
|
|
static bool m_GotFreq;
|
|
|
|
static uint64_t m_Freq;
|
|
|
|
#endif
|
|
|
|
uint64_t m_time;
|
2021-03-16 22:48:45 +00:00
|
|
|
};
|