|
gramods
|
Static functions for converting time. More...
#include <TimeTools.hh>
Public Types | |
| typedef std::chrono::steady_clock | clock |
Static Public Member Functions | |
| static clock::time_point | secondsToTimePoint (double s) |
| Converts the specified time (in seconds) from epoch to the steady_clock time_point type. | |
| static double | timePointToSeconds (clock::time_point t) |
| Converts the specified time from the steady_clock time_point into seconds from epoch. | |
| static double | durationToSeconds (clock::duration t) |
| Converts the specified duration from the steady_clock duration format into seconds. | |
| static clock::duration | secondsToDuration (double s) |
| Converts the specified time (in seconds) into the steady_clock duration type. | |
Static functions for converting time.
For example, to find the time in seconds used in a certain call:
|
static |
Converts the specified duration from the steady_clock duration format into seconds.
|
static |
Converts the specified time (in seconds) into the steady_clock duration type.
|
static |
Converts the specified time (in seconds) from epoch to the steady_clock time_point type.
|
static |
Converts the specified time from the steady_clock time_point into seconds from epoch.