Skip to content

Commit bc2c4fe

Browse files
authored
Rollup merge of #93462 - ChrisDenton:systime-doc, r=joshtriplett
Document `SystemTime` platform precision Fixes #88822
2 parents c1e2948 + 0189a21 commit bc2c4fe

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)