about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorAlex Berghage <bearcage@ludumipsum.com>2019-01-23 21:36:38 -0700
committerAlex Berghage <bearcage@ludumipsum.com>2019-01-23 21:36:38 -0700
commit14ce5364de3bf7d2da59fbe52360459c0f2c6ada (patch)
tree0d92193bd56d558a1b93d7c49b5c2084478837b9 /src/libstd
parent41be93c2f694b6b8c493b255d2e77c0703135b14 (diff)
downloadrust-14ce5364de3bf7d2da59fbe52360459c0f2c6ada.tar.gz
rust-14ce5364de3bf7d2da59fbe52360459c0f2c6ada.zip
Add a comment on the meaning of Instant t: Duration
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/sys/windows/time.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libstd/sys/windows/time.rs b/src/libstd/sys/windows/time.rs
index fe3766f25c8..8a8159af2f1 100644
--- a/src/libstd/sys/windows/time.rs
+++ b/src/libstd/sys/windows/time.rs
@@ -11,6 +11,8 @@ const INTERVALS_PER_SEC: u64 = NANOS_PER_SEC / 100;
 
 #[derive(Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Debug, Hash)]
 pub struct Instant {
+    // This duration is relative to an arbitrary microsecond epoch
+    // from the winapi QueryPerformanceCounter function.
     t: Duration,
 }