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

Perfom walltime measurements in nanoseconds #1060

Open
PhilippWendler opened this issue Jun 28, 2024 · 0 comments
Open

Perfom walltime measurements in nanoseconds #1060

PhilippWendler opened this issue Jun 28, 2024 · 0 comments

Comments

@PhilippWendler
Copy link
Member

Since Python 3.7 there is time.monotonic_ns(), which allows us to use nanoseconds for measuring walltime.

This makes sense only if we switch from using float to Decimal for storing these values, as the main reason why time.monotonic() is less precise is the use of float. This will change the types used in the public API of RunExecutor, but we have documented already that these values can be some arithmetic type and we have not guaranteed them to be floats. So we should be able to do this.

Then we should also return CPU-time measurements as Decimal values. (For these we already read micro- or nanosecond values from the kernel, but loose precision by converting them to float.)

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

No branches or pull requests

1 participant