1
Fork 0

Document SystemTime platform precision

This commit is contained in:
Chris Denton 2022-01-29 20:41:18 +00:00
parent a00e130dae
commit 0189a21c19
No known key found for this signature in database
GPG key ID: 713472F2F45627DE

View file

@ -176,7 +176,12 @@ pub struct Instant(time::Instant);
/// } /// }
/// ``` /// ```
/// ///
/// # Underlying System calls /// # Platform-specific behavior
///
/// The precision of `SystemTime` can depend on the underlying OS-specific time format.
/// For example, on Windows the time is represented in 100 nanosecond intervals whereas Linux
/// can represent nanosecond intervals.
///
/// Currently, the following system calls are being used to get the current time using `now()`: /// Currently, the following system calls are being used to get the current time using `now()`:
/// ///
/// | Platform | System call | /// | Platform | System call |