diff options
author | Noa <33094578+coolreader18@users.noreply.github.com> | 2021-09-12 12:36:55 -0500 |
---|---|---|
committer | Noa <33094578+coolreader18@users.noreply.github.com> | 2021-09-12 12:36:55 -0500 |
commit | 85f2502ced4c373177e59961bba26cdedbd138d3 (patch) | |
tree | edfdc694e56c389aac8e71b9482267783c67f3a0 /src/unix/redox | |
parent | 3bd76cd05e7ede26096cebf7f23e3d16e02d3069 (diff) | |
download | rust-libc-85f2502ced4c373177e59961bba26cdedbd138d3.tar.gz |
Add more redox clock constants
Diffstat (limited to 'src/unix/redox')
-rw-r--r-- | src/unix/redox/mod.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/unix/redox/mod.rs b/src/unix/redox/mod.rs index 747d98cc8f..f2a2d62958 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 { |