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

TimingUtils.cmake: Replace execute_process(date ...) with string(TIMESTAMP) with microsecond support with CMake 3.23 #462

Open
bartlettroscoe opened this issue Mar 10, 2022 · 0 comments

Comments

@bartlettroscoe
Copy link
Member

bartlettroscoe commented Mar 10, 2022

Blocked by:

With CMake 3.23, the string(TIMESTAMP ...) command now supports microseconds %f:

%f
     The microsecond of the current second (000000-999999).

This would allow us to replace the expensive execute_process(date ...) command in timer_get_raw_seconds() with a much faster and more portable string(TIMESTAMP ...) command.

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

No branches or pull requests

1 participant