Created
March 26, 2018 20:30
-
-
Save meshula/43082c58d73bc3c54060fb0466d4032f to your computer and use it in GitHub Desktop.
C++14 & greater
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Convert a timepoint to seconds | |
MyTimePoint tp = whatever(); | |
double x = std::chrono::time_point_cast<std::chrono::duration<double>>(tp).time_since_epoch().count(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment