@@ -101,7 +101,9 @@ pub use core::time::FromFloatSecsError;
101
101
/// ```
102
102
///
103
103
/// # Underlying System calls
104
- /// Currently, the following system calls are being used to get the current time using `now()`:
104
+ ///
105
+ /// The following system calls are [currently] being used by `now()` to find out
106
+ /// the current time:
105
107
///
106
108
/// | Platform | System call |
107
109
/// |-----------|----------------------------------------------------------------------|
@@ -113,6 +115,7 @@ pub use core::time::FromFloatSecsError;
113
115
/// | WASI | [__wasi_clock_time_get (Monotonic Clock)] |
114
116
/// | Windows | [QueryPerformanceCounter] |
115
117
///
118
+ /// [currently]: crate::io#platform-specific-behavior
116
119
/// [QueryPerformanceCounter]: https://docs.microsoft.com/en-us/windows/win32/api/profileapi/nf-profileapi-queryperformancecounter
117
120
/// [`insecure_time` usercall]: https://edp.fortanix.com/docs/api/fortanix_sgx_abi/struct.Usercalls.html#method.insecure_time
118
121
/// [timekeeping in SGX]: https://edp.fortanix.com/docs/concepts/rust-std/#codestdtimecode
@@ -203,7 +206,8 @@ pub struct Instant(time::Instant);
203
206
/// For example, on Windows the time is represented in 100 nanosecond intervals whereas Linux
204
207
/// can represent nanosecond intervals.
205
208
///
206
- /// Currently, the following system calls are being used to get the current time using `now()`:
209
+ /// The following system calls are [currently] being used by `now()` to find out
210
+ /// the current time:
207
211
///
208
212
/// | Platform | System call |
209
213
/// |-----------|----------------------------------------------------------------------|
@@ -215,6 +219,7 @@ pub struct Instant(time::Instant);
215
219
/// | WASI | [__wasi_clock_time_get (Realtime Clock)] |
216
220
/// | Windows | [GetSystemTimePreciseAsFileTime] / [GetSystemTimeAsFileTime] |
217
221
///
222
+ /// [currently]: crate::io#platform-specific-behavior
218
223
/// [`insecure_time` usercall]: https://edp.fortanix.com/docs/api/fortanix_sgx_abi/struct.Usercalls.html#method.insecure_time
219
224
/// [timekeeping in SGX]: https://edp.fortanix.com/docs/concepts/rust-std/#codestdtimecode
220
225
/// [gettimeofday]: https://man7.org/linux/man-pages/man2/gettimeofday.2.html
0 commit comments