9 Timer(
bool autostart =
false);
12 void setHighPrecision();
16 bool isRunning()
const;
18 bool isPaused()
const;
28 void setLoopTime( uint64_t usecs );
32 int64_t waitLoopAdjusted( int64_t adjustment_us );
34 bool elapsedLoop()
const;
36 uint64_t elapsedTime()
const;
38 uint64_t elapsedTimeMS()
const;
40 uint64_t elapsedTimeS()
const;
44 int64_t usleep( int64_t usecs );
46 int64_t sleep( int32_t secs );
48 int64_t msleep(int32_t msecs );
50 static int64_t usleep_s( int64_t usecs );
52 static int64_t usleep_s( int64_t usecs,
bool use_high_precision );
54 static int64_t sleep_s( int32_t secs );
56 static int64_t sleep_s( int32_t secs,
bool use_high_precision );
58 static int64_t msleep_s(int32_t msecs );
60 static int64_t msleep_s(int32_t msecs,
bool use_high_precision );
62 static uint64_t getCurrentTime();
64 static uint64_t getCurrentTimeNS();
66 static uint64_t getCurrentTimeS();
68 static uint64_t getTimeEpoc();
70 static uint64_t getTimeEpocMS();
72 static uint64_t getTimeEpocUS();
74 static uint64_t convertEpocToUTC_us( uint64_t epoc_us );
78 __TimerPrivate* _private;