Skip to content

Commit 0189a21

Browse files
committed
Document SystemTime platform precision
1 parent a00e130 commit 0189a21

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

library/std/src/time.rs

+6-1
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,12 @@ pub struct Instant(time::Instant);
176176
/// }
177177
/// ```
178178
///
179-
/// # Underlying System calls
179+
/// # Platform-specific behavior
180+
///
181+
/// The precision of `SystemTime` can depend on the underlying OS-specific time format.
182+
/// For example, on Windows the time is represented in 100 nanosecond intervals whereas Linux
183+
/// can represent nanosecond intervals.
184+
///
180185
/// Currently, the following system calls are being used to get the current time using `now()`:
181186
///
182187
/// | Platform | System call |

0 commit comments

Comments
 (0)