Home
last modified time | relevance | path

Searched refs:clockid_t (Results 1 – 25 of 147) sorted by relevance

123456

/external/ltp/lib/
Dtst_timer.c16 static clockid_t clock_id;
18 const char *tst_clock_name(clockid_t clk_id) in tst_clock_name()
42 void tst_timer_check(clockid_t clk_id) in tst_timer_check()
56 void tst_timer_start(clockid_t clk_id) in tst_timer_start()
Dtst_clocks.c17 int tst_clock_getres(clockid_t clk_id, struct timespec *res) in tst_clock_getres()
22 int tst_clock_gettime(clockid_t clk_id, struct timespec *ts) in tst_clock_gettime()
27 int tst_clock_settime(clockid_t clk_id, struct timespec *ts) in tst_clock_settime()
/external/rust/crates/nix/src/
Dtime.rs11 use libc::{self, clockid_t};
19 pub struct ClockId(clockid_t);
23 pub fn from_raw(clk_id: clockid_t) -> Self { in from_raw()
64 pub fn as_raw(self) -> clockid_t { in as_raw() argument
188 impl Into<clockid_t> for ClockId {
189 fn into(self) -> clockid_t { in into() argument
194 impl From<clockid_t> for ClockId {
195 fn from(clk_id: clockid_t) -> Self { in from()
252 let mut clk_id: MaybeUninit<libc::clockid_t> = MaybeUninit::uninit(); in clock_getcpuclockid()
/external/ltp/include/
Dtst_clocks.h25 int tst_clock_getres(clockid_t clk_id, struct timespec *res);
27 int tst_clock_gettime(clockid_t clk_id, struct timespec *ts);
29 int tst_clock_settime(clockid_t clk_id, struct timespec *ts);
Dtst_safe_clocks.h18 clockid_t clk_id, struct timespec *res) in safe_clock_getres()
30 clockid_t clk_id, struct timespec *tp) in safe_clock_gettime()
42 clockid_t clk_id, struct timespec *tp) in safe_clock_settime()
53 clockid_t clk_id, struct timex *txc) in safe_clock_adjtime()
Dtst_timer.h292 void tst_timer_check(clockid_t clk_id);
299 void tst_timer_start(clockid_t clk_id);
338 const char *tst_clock_name(clockid_t);
/external/oboe/src/common/
DAudioClock.h29 static int64_t getNanoseconds(clockid_t clockId = CLOCK_MONOTONIC) {
46 static int sleepUntilNanoTime(int64_t nanoTime, clockid_t clockId = CLOCK_MONOTONIC) {
62 static int sleepForNanos(int64_t nanoseconds, clockid_t clockId = CLOCK_REALTIME) {
/external/ltp/testcases/kernel/syscalls/clock_gettime/
Dclock_gettime01.c26 clockid_t clktype;
31 int (*func)(clockid_t clk_id, struct timespec *tp);
66 static int sys_clock_gettime(clockid_t clk_id, struct timespec *tp) in sys_clock_gettime()
Dclock_gettime02.c28 clockid_t clktype;
87 static int sys_clock_gettime(clockid_t clk_id, struct timespec *tp) in sys_clock_gettime()
/external/ltp/testcases/kernel/syscalls/clock_adjtime/
Dclock_adjtime.h19 static int sys_clock_adjtime(clockid_t, struct timex *);
25 static int sys_clock_adjtime(clockid_t clk_id, struct timex *txc) in sys_clock_adjtime()
/external/ltp/testcases/kernel/syscalls/clock_nanosleep2/
Dclock_nanosleep2_01.c17 const clockid_t CLOCK_TO_USE = CLOCK_MONOTONIC;
18 static int clock_nanosleep2(clockid_t clock_id, int flags, in clock_nanosleep2()
/external/perfetto/include/perfetto/base/
Dtime.h134 constexpr clockid_t kWallTimeClockSource = CLOCK_MONOTONIC;
136 inline TimeNanos GetTimeInternalNs(clockid_t clk_id) { in GetTimeInternalNs()
146 static const clockid_t kBootTimeClockSource = [] { in GetBootTimeNs()
/external/rust/crates/libc/src/unix/bsd/freebsdlike/
Dmod.rs763 pub const CLOCK_REALTIME: ::clockid_t = 0;
764 pub const CLOCK_VIRTUAL: ::clockid_t = 1;
765 pub const CLOCK_PROF: ::clockid_t = 2;
766 pub const CLOCK_MONOTONIC: ::clockid_t = 4;
767 pub const CLOCK_UPTIME: ::clockid_t = 5;
768 pub const CLOCK_UPTIME_PRECISE: ::clockid_t = 7;
769 pub const CLOCK_UPTIME_FAST: ::clockid_t = 8;
770 pub const CLOCK_REALTIME_PRECISE: ::clockid_t = 9;
771 pub const CLOCK_REALTIME_FAST: ::clockid_t = 10;
772 pub const CLOCK_MONOTONIC_PRECISE: ::clockid_t = 11;
[all …]
/external/rust/crates/libc/src/unix/linux_like/
Dmod.rs4 pub type clockid_t = ::c_int; typedef
484 pub const CLOCK_REALTIME: ::clockid_t = 0;
485 pub const CLOCK_MONOTONIC: ::clockid_t = 1;
486 pub const CLOCK_PROCESS_CPUTIME_ID: ::clockid_t = 2;
487 pub const CLOCK_THREAD_CPUTIME_ID: ::clockid_t = 3;
488 pub const CLOCK_MONOTONIC_RAW: ::clockid_t = 4;
489 pub const CLOCK_REALTIME_COARSE: ::clockid_t = 5;
490 pub const CLOCK_MONOTONIC_COARSE: ::clockid_t = 6;
491 pub const CLOCK_BOOTTIME: ::clockid_t = 7;
492 pub const CLOCK_REALTIME_ALARM: ::clockid_t = 8;
[all …]
/external/oboe/docs/
DChangeLog.md12 - [Add `AudioStream::getTimestamp(clockid_t)`](https://github.com/google/oboe/pull/213/commits/ab69…
13 - Deprecate `AudioStream::getTimestamp(clockid_t, int64_t, int64_t)`. Same commit as above.
/external/ltp/testcases/kernel/syscalls/clock_settime/
Dclock_settime02.c21 clockid_t type;
89 static int sys_clock_settime(clockid_t clk_id, struct timespec *tp) in sys_clock_settime()
/external/rust/crates/libc/src/unix/newlib/
Dmod.rs3 pub type clockid_t = ::c_ulong; typedef
424 pub const CLOCK_REALTIME: ::clockid_t = 1;
425 pub const CLOCK_MONOTONIC: ::clockid_t = 4;
426 pub const CLOCK_BOOTTIME: ::clockid_t = 4;
603 pub fn clock_settime(clock_id: ::clockid_t, tp: *const ::timespec) -> ::c_int; in clock_settime() argument
604 pub fn clock_gettime(clock_id: ::clockid_t, tp: *mut ::timespec) -> ::c_int; in clock_gettime() argument
605 pub fn clock_getres(clock_id: ::clockid_t, res: *mut ::timespec) -> ::c_int; in clock_getres() argument
/external/ltp/testcases/open_posix_testsuite/conformance/definitions/time_h/
D7-4-buildonly.c13 clockid_t dummy;
D15-1-buildonly.c16 typedef int (*clock_settime_test) (clockid_t, const struct timespec *);
D11-1-buildonly.c16 typedef int (*clock_getcpuclockid_test) (pid_t, clockid_t *);
D13-1-buildonly.c16 typedef int (*clock_gettime_test) (clockid_t, struct timespec *);
D12-1-buildonly.c16 typedef int (*clock_getres_test) (clockid_t, struct timespec *);
D29-1-buildonly.c16 typedef int (*timer_create_test) (clockid_t, struct sigevent *, timer_t *);
D14-1-buildonly.c17 typedef int (*clock_nanosleep_test) (clockid_t, int, const struct timespec *,
/external/rust/crates/libc/src/unix/bsd/netbsdlike/
Dmod.rs11 pub type clockid_t = ::c_int; typedef
378 pub const CLOCK_REALTIME: ::clockid_t = 0;
379 pub const CLOCK_MONOTONIC: ::clockid_t = 3;
653 pub fn clock_getres(clk_id: ::clockid_t, tp: *mut ::timespec) -> ::c_int; in clock_getres() argument
655 pub fn clock_gettime(clk_id: ::clockid_t, tp: *mut ::timespec) -> ::c_int; in clock_gettime() argument
657 pub fn clock_settime(clk_id: ::clockid_t, tp: *const ::timespec) -> ::c_int; in clock_settime() argument
702 clock_id: ::clockid_t, in pthread_condattr_setclock() argument

123456