iRoCS Toolbox
1.1.0
|
The MyDateTime struct provides pretty printed date - time strings with microsecond resolution. More...
#include <ATBTiming.hh>
Static Public Member Functions | |
static std::string | prettyDate () |
Get a pretty printed version of the current system date and time. More... | |
static std::string | prettyTime () |
Timestamp relative to system boot in microsecond accuracy of the form xxxxxxxxxxxx.xxxxxx (s.mus). More... | |
static std::string | prettyTime (long long time_us) |
Get a pretty printed version of the given time in microseconds as hh:mm:ss.mmm,uuu. More... | |
static long long | time_us () |
Get the elapsed microseconds since system boot. More... | |
The MyDateTime struct provides pretty printed date - time strings with microsecond resolution.
This struct provides pretty printed versions of the current system time in two formats: microseconds since system start, current date and time in the following format: Weekday Month Day Time Year
Definition at line 55 of file ATBTiming.hh.
|
static |
Timestamp relative to system boot in microsecond accuracy of the form xxxxxxxxxxxx.xxxxxx (s.mus).
The timestamps are pre-padded with zeros, to make them string-sortable.
|
static |
Get the elapsed microseconds since system boot.
|
static |
Get a pretty printed version of the current system date and time.
|
static |
Get a pretty printed version of the given time in microseconds as hh:mm:ss.mmm,uuu.