Skip to content

Commit 57e7e28

Browse files
committed
Update docs for SystemTime Windows implementation
Windows now uses `GetSystemTimePreciseAsFileTime` on versions of Windows that support it.
1 parent 0a49057 commit 57e7e28

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

library/std/src/time.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -159,14 +159,15 @@ pub struct Instant(time::Instant);
159159
/// | DARWIN | [gettimeofday] |
160160
/// | VXWorks | [clock_gettime (Realtime Clock)] |
161161
/// | WASI | [__wasi_clock_time_get (Realtime Clock)] |
162-
/// | Windows | [GetSystemTimeAsFileTime] |
162+
/// | Windows | [GetSystemTimePreciseAsFileTime] / [GetSystemTimeAsFileTime] |
163163
///
164164
/// [clock_time_get (Realtime Clock)]: https://nuxi.nl/cloudabi/#clock_time_get
165165
/// [`insecure_time` usercall]: https://edp.fortanix.com/docs/api/fortanix_sgx_abi/struct.Usercalls.html#method.insecure_time
166166
/// [timekeeping in SGX]: https://edp.fortanix.com/docs/concepts/rust-std/#codestdtimecode
167167
/// [gettimeofday]: http://man7.org/linux/man-pages/man2/gettimeofday.2.html
168168
/// [clock_gettime (Realtime Clock)]: https://linux.die.net/man/3/clock_gettime
169169
/// [__wasi_clock_time_get (Realtime Clock)]: https://github.com/WebAssembly/WASI/blob/master/phases/snapshot/docs.md#clock_time_get
170+
/// [GetSystemTimePreciseAsFileTime]: https://docs.microsoft.com/en-us/windows/win32/api/sysinfoapi/nf-sysinfoapi-getsystemtimepreciseasfiletime
170171
/// [GetSystemTimeAsFileTime]: https://docs.microsoft.com/en-us/windows/win32/api/sysinfoapi/nf-sysinfoapi-getsystemtimeasfiletime
171172
///
172173
/// **Disclaimer:** These system calls might change over time.

0 commit comments

Comments
 (0)