Skip to content

Commit 88f0c0d

Browse files
committed
Use correct clock enum value
1 parent f3ef98f commit 88f0c0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/std/src/sys/unix/time.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ mod inner {
151151
extern "C" {
152152
fn clock_gettime_nsec_np(clock_type: u32) -> u64;
153153
}
154-
Instant { t: unsafe { clock_gettime_nsec_np(8) } }
154+
Instant { t: unsafe { clock_gettime_nsec_np(4) } }
155155
}
156156

157157
pub fn checked_sub_instant(&self, other: &Instant) -> Option<Duration> {

0 commit comments

Comments
 (0)