Skip to content

Commit b1c89cc

Browse files
committed
Auto merge of #2398 - coolreader18:redox-clock, r=Amanieu
Add more redox clock constants
2 parents 82a3396 + 85f2502 commit b1c89cc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/unix/redox/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -819,6 +819,8 @@ pub const __WCLONE: ::c_int = 0x8000_0000;
819819
// time.h
820820
pub const CLOCK_REALTIME: ::c_int = 1;
821821
pub const CLOCK_MONOTONIC: ::c_int = 4;
822+
pub const CLOCK_PROCESS_CPUTIME_ID: ::clockid_t = 2;
823+
pub const CLOCKS_PER_SEC: ::clock_t = 1_000_000;
822824

823825
// unistd.h
824826
// POSIX.1 {

0 commit comments

Comments
 (0)