Skip to content

Commit

Permalink
time: clarify platform specific timer resolution (tokio-rs#4474)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbuckmccready committed Mar 16, 2022
1 parent 61e37c6 commit 0abe825
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tokio/src/time/driver/sleep.rs
Expand Up @@ -72,7 +72,9 @@ pub fn sleep_until(deadline: Instant) -> Sleep {
///
/// No work is performed while awaiting on the sleep future to complete. `Sleep`
/// operates at millisecond granularity and should not be used for tasks that
/// require high-resolution timers.
/// require high-resolution timers. The implementation is platform specific,
/// and some platforms (specifically Windows) will provide timers with a
/// larger resolution than 1 ms.
///
/// To run something regularly on a schedule, see [`interval`].
///
Expand Down

0 comments on commit 0abe825

Please sign in to comment.