Skip to content

Commit

Permalink
Document that Instant may or may not include system-suspend time
Browse files Browse the repository at this point in the history
  • Loading branch information
the8472 committed Sep 25, 2023
1 parent 9d32ba3 commit b0412d5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions library/std/src/time.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ pub use core::time::TryFromFloatSecsError;
/// some seconds may be longer than others). An instant may jump forwards or
/// experience time dilation (slow down or speed up), but it will never go
/// backwards.
/// As part of this non-guarantee it is also not specified whether system suspends count as
/// elapsed time or not. The behavior varies across platforms and rust versions.
///
/// Instants are opaque types that can only be compared to one another. There is
/// no method to get "the number of seconds" from an instant. Instead, it only
Expand Down

0 comments on commit b0412d5

Please sign in to comment.