Skip to content

Commit 3373897

Browse files
authored
Rollup merge of rust-lang#43756 - sfackler:instant-nondecreasing, r=alexcrichton
Instant is monotonically nondecreasing We don't want to guarantee that `Instant::now() != Instant::now()` is always true since that depends on the speed of the processor and the resolution of the clock.
2 parents df511d5 + 97d046a commit 3373897

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libstd/time/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ pub use self::duration::Duration;
3333

3434
mod duration;
3535

36-
/// A measurement of a monotonically increasing clock.
36+
/// A measurement of a monotonically nondecreasing clock.
3737
/// Opaque and useful only with `Duration`.
3838
///
39-
/// Instants are always guaranteed to be greater than any previously measured
39+
/// Instants are always guaranteed to be no less than any previously measured
4040
/// instant when created, and are often useful for tasks such as measuring
4141
/// benchmarks or timing how long an operation takes.
4242
///

0 commit comments

Comments
 (0)