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

sleep should have nanosecond precision #12690

Closed
thestinger opened this issue Mar 4, 2014 · 7 comments
Closed

sleep should have nanosecond precision #12690

thestinger opened this issue Mar 4, 2014 · 7 comments
Labels
P-low Low priority

Comments

@thestinger
Copy link
Contributor

This would be a backwards incompatible change to the API.

@alexcrichton
Copy link
Member

Closing as a dupe of #11189

@alexcrichton
Copy link
Member

As @mahkoh points out, #11189 was handled but this issue has not yet been implemented. Reopening to track the sleeping functions taking this kind of precision into account.

@alexcrichton alexcrichton reopened this Oct 24, 2014
@pnkfelix
Copy link
Member

pnkfelix commented Nov 6, 2014

Duration API offers nanosecond precision in API (but does not implement it). Thus purely implementation issue, as @alexcrichton said. P-low, not 1.0.

@pnkfelix pnkfelix added P-low Low priority and removed I-nominated labels Nov 6, 2014
@mahkoh
Copy link
Contributor

mahkoh commented Feb 10, 2015

This is an implementation issue but not an implementation detail. Changing this will change the behavior of sleeping programs. The behavior is hardly even documented.

@steveklabnik
Copy link
Member

Triage: sleep now takes a Duration, and so will grow a nanosecond precision when Duration does.

@alexcrichton
Copy link
Member

Oh this is actually done, Duration has nanosecond precision.

@z3t0
Copy link

z3t0 commented Aug 2, 2016

Hi all, just wanted to ask it seems that sleep() does not sleep to the nanosecond precision?

bors added a commit to rust-lang-ci/rust that referenced this issue Jul 25, 2022
internal: Update inert attribute list
flip1995 pushed a commit to flip1995/rust that referenced this issue Apr 18, 2024
flip1995 pushed a commit to flip1995/rust that referenced this issue Apr 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P-low Low priority
Projects
None yet
Development

No branches or pull requests

6 participants