2 * Written by Arno Bakker
3 * see LICENSE.txt for license information
5 * Singleton class to retrieve a time-of-day in UTC in usec in a platform-
8 #ifndef HIRESTIMEOFDAY_H
9 #define HIRESTIMEOFDAY_H
12 #include "compat/stdint.h"
23 #define TINT_SEC ((tint)1000000)
24 #define TINT_MSEC ((tint)1000)
25 #define TINT_uSEC ((tint)1)
26 #define TINT_NEVER ((tint)0x7fffffffffffffffLL)
33 tint getTimeUSec(void);
34 static HiResTimeOfDay* Instance();
38 tint epochstart; // in usec
39 LARGE_INTEGER epochcounter;
41 LARGE_INTEGER frequency;
43 tint HiResTimeOfDay::getFTime();
44 LARGE_INTEGER getFrequency(void);
45 LARGE_INTEGER getCounter(void);
48 static HiResTimeOfDay* _instance;