Document that Instant may or may not include system-suspend time
This commit is contained in:
parent
9d32ba3a72
commit
b0412d597e
@ -58,6 +58,8 @@
|
|||||||
/// some seconds may be longer than others). An instant may jump forwards or
|
/// 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
|
/// experience time dilation (slow down or speed up), but it will never go
|
||||||
/// backwards.
|
/// 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
|
/// 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
|
/// no method to get "the number of seconds" from an instant. Instead, it only
|
||||||
|
Loading…
Reference in New Issue
Block a user