From 85f2502ced4c373177e59961bba26cdedbd138d3 Mon Sep 17 00:00:00 2001 From: Noa <33094578+coolreader18@users.noreply.github.com> Date: Sun, 12 Sep 2021 12:36:55 -0500 Subject: [PATCH] Add more redox clock constants --- src/unix/redox/mod.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/unix/redox/mod.rs b/src/unix/redox/mod.rs index 747d98cc8fb7e..f2a2d629585a4 100644 --- a/src/unix/redox/mod.rs +++ b/src/unix/redox/mod.rs @@ -819,6 +819,8 @@ pub const __WCLONE: ::c_int = 0x8000_0000; // time.h pub const CLOCK_REALTIME: ::c_int = 1; pub const CLOCK_MONOTONIC: ::c_int = 4; +pub const CLOCK_PROCESS_CPUTIME_ID: ::clockid_t = 2; +pub const CLOCKS_PER_SEC: ::clock_t = 1_000_000; // unistd.h // POSIX.1 {