Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Would be nice to include the new rounding functions in chrono in C++17 #132

Open
UPC-PaalDriveklepp opened this issue Nov 2, 2023 · 0 comments

Comments

@UPC-PaalDriveklepp
Copy link

floor(std::chrono::duration)(C++17) converts a duration to another, rounding down(function template)
ceil(std::chrono::duration)(C++17) converts a duration to another, rounding up(function template)
round(std::chrono::duration)(C++17) converts a duration to another, rounding to nearest, ties to even(function template)
abs(std::chrono::duration)(C++17) obtains the absolute value of the duration(function template)

floor(std::chrono::duration)

(C++17)

converts a duration to another, rounding down
(function template)
ceil(std::chrono::duration)

(C++17)

converts a duration to another, rounding up
(function template)
round(std::chrono::duration)

(C++17)

converts a duration to another, rounding to nearest, ties to even
(function template)
abs(std::chrono::duration)

(C++17)

obtains the absolute value of the duration
(function template)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants