cxxomfort
rel.20211024
Simple backports for C++ - https://ryan.gulix.cl/fossil.cgi/cxxomfort/
|
Backports related to Standard header <ctime>
(or automatically by including <cxxomfort/backports.hpp>
/ <cxxomfort/cxxomfort.hpp>
)
Interfaces defined in this section:
timespec_get()
- obtain current time information for a system clock.timespec
- information datatype for timespec_get
.CXXOMFORT_IMPLEMENTS_timespec_get
- implementation status for the above.Non-backport interfaces:
cxxomfort::msleep()
- microseconds sleep.tm_date
- storage class for the date part of a struct std::tm
.tm_time
- storage class for the time part of a struct std::tm
.Note that the resolution on timespec::tv_nsec
is limited by the system clock, and some machines' clocks may not be able to provide information with the required precision. Because of this, as part of the emulation this function is permitted to always return zero for this field.