Static functions for converting time.
More...
#include <TimeTools.hh>
|
|
typedef std::chrono::steady_clock | clock |
| |
|
| static clock::time_point | secondsToTimePoint (double s) |
| | Converts the specified time (in seconds) from epoch to the steady_clock time_point type. More...
|
| |
| static double | timePointToSeconds (clock::time_point t) |
| | Converts the specified time from the steady_clock time_point into seconds from epoch. More...
|
| |
| static double | durationToSeconds (clock::duration t) |
| | Converts the specified duration from the steady_clock duration format into seconds. More...
|
| |
| static clock::duration | secondsToDuration (double s) |
| | Converts the specified time (in seconds) into the steady_clock duration type. More...
|
| |
Static functions for converting time.
◆ durationToSeconds()
| double gramods::gmCore::TimeTools::durationToSeconds |
( |
clock::duration |
t | ) |
|
|
static |
Converts the specified duration from the steady_clock duration format into seconds.
◆ secondsToDuration()
| TimeTools::clock::duration gramods::gmCore::TimeTools::secondsToDuration |
( |
double |
s | ) |
|
|
static |
Converts the specified time (in seconds) into the steady_clock duration type.
◆ secondsToTimePoint()
| TimeTools::clock::time_point gramods::gmCore::TimeTools::secondsToTimePoint |
( |
double |
s | ) |
|
|
static |
Converts the specified time (in seconds) from epoch to the steady_clock time_point type.
◆ timePointToSeconds()
| double gramods::gmCore::TimeTools::timePointToSeconds |
( |
clock::time_point |
t | ) |
|
|
static |
Converts the specified time from the steady_clock time_point into seconds from epoch.
The documentation for this struct was generated from the following files:
- /home/karlu/private/program/gramods/modules/gmCore/include/gmCore/TimeTools.hh
- /home/karlu/private/program/gramods/modules/gmCore/src/TimeTools.cpp