src/new/netbsd/sys/time.rs
raw| 1 | //! Header: `sys/time.h` |
| 2 | //! |
| 3 | //! <https://github.com/NetBSD/src/blob/trunk/sys/sys/time.h> |
| 4 | |
| 5 | s! { |
| 6 | pub struct itimerspec { |
| 7 | pub it_interval: crate::timespec, |
| 8 | pub it_value: crate::timespec, |
| 9 | } |
| 10 | } |
| 11 | |
| 12 | pub const CLOCK_VIRTUAL: crate::clockid_t = 1; |
| 13 | pub const CLOCK_PROF: crate::clockid_t = 2; |
| 14 | pub const CLOCK_THREAD_CPUTIME_ID: crate::clockid_t = 0x20000000; |
| 15 | pub const CLOCK_PROCESS_CPUTIME_ID: crate::clockid_t = 0x40000000; |