Rollup merge of #93462 - ChrisDenton:systime-doc, r=joshtriplett

Document `SystemTime` platform precision

Fixes #88822
This commit is contained in:
Matthias Krüger 2022-01-31 07:00:43 +01:00 committed by GitHub
commit bc2c4feaeb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -176,7 +176,12 @@
/// }
/// ```
///
/// # 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()`:
///
/// | Platform | System call |