Continue reading "Converting between timespec & std::chrono"
Converting between timespec & std::chrono
I was working with some POSIX APIs recently and needed to supply a timespec value. I primarily work with std::chrono types in C++ and was surprised that there were no (obvious) existing conversion methods. Below are a few utility functions that I came up with to handle common conversions. Table of Contents timespec Refresher Conversion …
