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

Time utilities. More...

Classes

class  Duration
 Time duration. More...
 
struct  GloTime
 GLONASS time. More...
 
struct  RosTime
 Minimal ros::Time() / rplcpp::Time implementation (that doesn't throw) More...
 
class  TicToc
 Helper to measure wallclock time. More...
 
class  Time
 Time. More...
 
struct  UtcTime
 UTC time representation. More...
 
struct  WnoTow
 GNSS atomic time representation: week number (wno) and time of week (tow) used by GPS, Galileo and BeiDou. More...
 

Functions

uint64_t GetMillis ()
 Get milliseconds [ms], monotonic time.
 
double GetSecs ()
 Get seconds [s], monotonic time.
 

Variables

static constexpr int SEC_IN_MIN_I = 60
 Constants.
 
static constexpr int SEC_IN_HOUR_I = 60 * SEC_IN_MIN_I
 Number of seconds in an hour (integer)
 
static constexpr int SEC_IN_DAY_I = 24 * SEC_IN_HOUR_I
 Number of seconds in a day (integer)
 
static constexpr int SEC_IN_WEEK_I = 7 * SEC_IN_DAY_I
 Number of seconds in a week (integer)
 
static constexpr double SEC_IN_MIN_D = static_cast<double>(SEC_IN_MIN_I)
 Number of seconds in a minute (double)
 
static constexpr double SEC_IN_HOUR_D = static_cast<double>(SEC_IN_HOUR_I)
 Number of seconds in an hour (double)
 
static constexpr double SEC_IN_DAY_D = static_cast<double>(SEC_IN_DAY_I)
 Number of seconds in a day (double)
 
static constexpr double SEC_IN_WEEK_D = static_cast<double>(SEC_IN_WEEK_I)
 Number of seconds in a week (double)
 

Detailed Description

Time utilities.

Function Documentation

◆ GetMillis()

uint64_t fpsdk::common::time::GetMillis ( )

Get milliseconds [ms], monotonic time.

Returns
the number of milliseconds

◆ GetSecs()

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

Get seconds [s], monotonic time.

Returns
the number of seconds

Variable Documentation

◆ SEC_IN_MIN_I

int fpsdk::common::time::SEC_IN_MIN_I = 60
staticconstexpr

Constants.

Number of seconds in a minute (integer)

Definition at line 48 of file time.hpp.

◆ SEC_IN_HOUR_I

int fpsdk::common::time::SEC_IN_HOUR_I = 60 * SEC_IN_MIN_I
staticconstexpr

Number of seconds in an hour (integer)

Definition at line 49 of file time.hpp.

◆ SEC_IN_DAY_I

int fpsdk::common::time::SEC_IN_DAY_I = 24 * SEC_IN_HOUR_I
staticconstexpr

Number of seconds in a day (integer)

Definition at line 50 of file time.hpp.

◆ SEC_IN_WEEK_I

int fpsdk::common::time::SEC_IN_WEEK_I = 7 * SEC_IN_DAY_I
staticconstexpr

Number of seconds in a week (integer)

Definition at line 51 of file time.hpp.

◆ SEC_IN_MIN_D

double fpsdk::common::time::SEC_IN_MIN_D = static_cast<double>(SEC_IN_MIN_I)
staticconstexpr

Number of seconds in a minute (double)

Definition at line 52 of file time.hpp.

◆ SEC_IN_HOUR_D

double fpsdk::common::time::SEC_IN_HOUR_D = static_cast<double>(SEC_IN_HOUR_I)
staticconstexpr

Number of seconds in an hour (double)

Definition at line 53 of file time.hpp.

◆ SEC_IN_DAY_D

double fpsdk::common::time::SEC_IN_DAY_D = static_cast<double>(SEC_IN_DAY_I)
staticconstexpr

Number of seconds in a day (double)

Definition at line 54 of file time.hpp.

◆ SEC_IN_WEEK_D

double fpsdk::common::time::SEC_IN_WEEK_D = static_cast<double>(SEC_IN_WEEK_I)
staticconstexpr

Number of seconds in a week (double)

Definition at line 55 of file time.hpp.