OpenAstra
 
Loading...
Searching...
No Matches
Timer Class Reference

Public Member Functions

 Timer (bool autostart=false)
 
void setHighPrecision ()
 
uint64_t start ()
 
bool isRunning () const
 
bool isPaused () const
 
void reset ()
 
void stopReset ()
 
void pause ()
 
void resume ()
 
void setLoopTime (uint64_t usecs)
 
int64_t waitLoop ()
 
int64_t waitLoopAdjusted (int64_t adjustment_us)
 
bool elapsedLoop () const
 
uint64_t elapsedTime () const
 
uint64_t elapsedTimeMS () const
 
uint64_t elapsedTimeS () const
 
uint64_t stop ()
 
int64_t usleep (int64_t usecs)
 
int64_t sleep (int32_t secs)
 
int64_t msleep (int32_t msecs)
 

Static Public Member Functions

static int64_t usleep_s (int64_t usecs)
 
static int64_t usleep_s (int64_t usecs, bool use_high_precision)
 
static int64_t sleep_s (int32_t secs)
 
static int64_t sleep_s (int32_t secs, bool use_high_precision)
 
static int64_t msleep_s (int32_t msecs)
 
static int64_t msleep_s (int32_t msecs, bool use_high_precision)
 
static uint64_t getCurrentTime ()
 
static uint64_t getCurrentTimeNS ()
 
static uint64_t getCurrentTimeS ()
 
static uint64_t getTimeEpoc ()
 
static uint64_t getTimeEpocMS ()
 
static uint64_t getTimeEpocUS ()
 
static uint64_t convertEpocToUTC_us (uint64_t epoc_us)
 

The documentation for this class was generated from the following files: