Skip to content

Commit 14ce536

Browse files
committed
Add a comment on the meaning of Instant t: Duration
1 parent 41be93c commit 14ce536

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/libstd/sys/windows/time.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ const INTERVALS_PER_SEC: u64 = NANOS_PER_SEC / 100;
1111

1212
#[derive(Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Debug, Hash)]
1313
pub struct Instant {
14+
// This duration is relative to an arbitrary microsecond epoch
15+
// from the winapi QueryPerformanceCounter function.
1416
t: Duration,
1517
}
1618

0 commit comments

Comments
 (0)