cxxomfort  rel.20211024
Simple backports for C++ - https://ryan.gulix.cl/fossil.cgi/cxxomfort/
<ctime>

Backports related to Standard header <ctime>

// or as part of:

(or automatically by including <cxxomfort/backports.hpp> / <cxxomfort/cxxomfort.hpp>)

Interfaces

Interfaces defined in this section:

Non-backport interfaces:

Notes on timespec

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.

See Also

See also
header/ctime @ cppreference (cppreference)
File ctime.hpp