Fixposition SDK 0.0.0-heads/main-0-g7b59b93
Collection of c++ libraries and apps for use with Fixposition products
Loading...
Searching...
No Matches
fpsdk::common::time Namespace Reference

Time utilities. More...

Classes

struct  RosTime
 Minimal ros::Time() / rplcpp::Time implementation (that doesn't throw) More...
 

Functions

uint64_t GetTicks ()
 Get ticks [ms], monotonic time.
 
double GetSecs ()
 Get seconds [s], monotonic time.
 
void Sleep (const uint32_t duration)
 Sleep for a bit.
 

Detailed Description

Time utilities.

Function Documentation

◆ GetTicks()

uint64_t fpsdk::common::time::GetTicks ( )

Get ticks [ms], monotonic time.

Returns
the number of ticks

◆ GetSecs()

double fpsdk::common::time::GetSecs ( )

Get seconds [s], monotonic time.

Returns
the number of seconds

◆ Sleep()

void fpsdk::common::time::Sleep ( const uint32_t duration)

Sleep for a bit.

Note
The effective sleep duration is approximate only
Parameters
[in]durationDuration in [ms]