Skip to content

Commit

Permalink
time: clarify platform specific timer resolution (#4474)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbuckmccready authored 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
Original file line number Diff line number Diff line change
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.