cxxomfort
rel.20210622
Simple backports for C++ - http://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 because machines may not deliver the required kind of information in machines old enough to not have implemented timespec, this function is allowed here to return zero for this field.