diff options
| author | Alex Berghage <bearcage@ludumipsum.com> | 2019-01-23 21:36:38 -0700 |
|---|---|---|
| committer | Alex Berghage <bearcage@ludumipsum.com> | 2019-01-23 21:36:38 -0700 |
| commit | 14ce5364de3bf7d2da59fbe52360459c0f2c6ada (patch) | |
| tree | 0d92193bd56d558a1b93d7c49b5c2084478837b9 /src/libstd | |
| parent | 41be93c2f694b6b8c493b255d2e77c0703135b14 (diff) | |
| download | rust-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.rs | 2 |
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, } |
