Home
last modified time | relevance | path

Searched refs:clock_gettime (Results 1 – 25 of 474) sorted by relevance

12345678910>>...19

/third_party/ltp/testcases/kernel/syscalls/clock_gettime/
Dclock_gettime04.c79 …{ .clock_gettime = libc_clock_gettime, .ts_type = TST_LIBC_TIMESPEC, .desc = "vDSO or syscall with…
82 …{ .clock_gettime = sys_clock_gettime, .ts_type = TST_KERN_OLD_TIMESPEC, .desc = "syscall with old …
83 …{ .clock_gettime = vdso_gettime, .ts_type = TST_KERN_OLD_TIMESPEC, .desc = "vDSO with old kernel s…
87 …{ .clock_gettime = sys_clock_gettime64, .ts_type = TST_KERN_TIMESPEC, .desc = "syscall time64 with…
88 …{ .clock_gettime = vdso_gettime64, .ts_type = TST_KERN_TIMESPEC, .desc = "vDSO time64 with kernel …
90 { .clock_gettime = my_gettimeofday, .ts_type = TST_LIBC_TIMESPEC, .desc = "gettimeofday"},
120 if (tv->clock_gettime == my_gettimeofday && clks[i] != CLOCK_REALTIME) in run()
123 ret = tv->clock_gettime(clks[i], tst_ts_get(&ts)); in run()
147 if (tv->clock_gettime == my_gettimeofday) in run()
172 if (variants[j].clock_gettime == my_gettimeofday && clks[i] != CLOCK_REALTIME) in run()
Dclock_gettime03.c42 …{ .clock_gettime = libc_clock_gettime, .ts_type = TST_LIBC_TIMESPEC, .desc = "vDSO or syscall with…
45 …{ .clock_gettime = sys_clock_gettime, .ts_type = TST_KERN_OLD_TIMESPEC, .desc = "syscall with old …
49 …{ .clock_gettime = sys_clock_gettime64, .ts_type = TST_KERN_TIMESPEC, .desc = "syscall time64 with…
57 if (tv->clock_gettime(tc->clk_id, tst_ts_get(&then))) { in child()
65 if (tv->clock_gettime(tc->clk_id, tst_ts_get(&parent_then))) { in child()
102 if (tv->clock_gettime(tc->clk_id, tst_ts_get(&now))) { in verify_ns_clock()
Dclock_gettime01.c63 …{ .clock_gettime = libc_clock_gettime, .ts_type = TST_LIBC_TIMESPEC, .desc = "vDSO or syscall with…
66 …{ .clock_gettime = sys_clock_gettime, .ts_type = TST_KERN_OLD_TIMESPEC, .desc = "syscall with old …
70 …{ .clock_gettime = sys_clock_gettime64, .ts_type = TST_KERN_TIMESPEC, .desc = "syscall time64 with…
95 TEST(tv->clock_gettime(tc[i].clktype, tst_ts_get(&spec))); in verify_clock_gettime()
/third_party/rust/crates/rustix/tests/time/
Dmonotonic.rs3 use rustix::time::{clock_gettime, ClockId, Timespec};
9 let a = clock_gettime(ClockId::Monotonic); in test_monotonic_clock()
10 let b = clock_gettime(ClockId::Monotonic); in test_monotonic_clock()
23 let a = clock_gettime(ClockId::Monotonic); in test_monotonic_clock_with_sleep_1s()
28 let b = clock_gettime(ClockId::Monotonic); in test_monotonic_clock_with_sleep_1s()
37 let a = clock_gettime(ClockId::Monotonic); in test_monotonic_clock_with_sleep_1ms()
42 let b = clock_gettime(ClockId::Monotonic); in test_monotonic_clock_with_sleep_1ms()
/third_party/musl/libc-test/src/functionalext/supplement/thread/thread_gtest/
Dthread_mutex_test.cpp183 clock_gettime(CLOCK_REALTIME, &timeSpec_);
188 clock_gettime(CLOCK_REALTIME, &timeSpec_);
203 clock_gettime(CLOCK_REALTIME, &timeSpec_);
212 clock_gettime(CLOCK_REALTIME, &ts); in __anon432f95fd0302()
234 clock_gettime(CLOCK_MONOTONIC, &timeSpec_);
239 clock_gettime(CLOCK_MONOTONIC, &timeSpec_);
254 clock_gettime(CLOCK_MONOTONIC, &timeSpec_);
263 clock_gettime(CLOCK_MONOTONIC, &ts); in __anon432f95fd0402()
286 clock_gettime(CLOCK_MONOTONIC, &timeSpec_);
291 clock_gettime(CLOCK_MONOTONIC, &timeSpec_);
[all …]
/third_party/musl/libc-test/src/functionalext/supplement/time/time_gtest/
Dsys_clock_test.cpp192 int result = clock_gettime(CLOCK_MONOTONIC, &ts1);
196 result = clock_gettime(CLOCK_MONOTONIC, &ts2);
218 int result = clock_gettime(CLOCK_REALTIME, &times);
232 int result = clock_gettime(CLOCK_MONOTONIC, &times);
246 int result = clock_gettime(CLOCK_PROCESS_CPUTIME_ID, &times);
260 int result = clock_gettime(CLOCK_THREAD_CPUTIME_ID, &times);
274 int result = clock_gettime(CLOCK_BOOTTIME, &times);
288 int result = clock_gettime(-1, &times);
365 int result2 = clock_gettime(id, &times);
381 int result2 = clock_gettime(id, &times);
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/clock_gettime/
D3-1.c31 if (clock_gettime(CLOCK_MONOTONIC, &ts1) != 0) { in main()
36 if (clock_gettime(CLOCK_MONOTONIC, &ts2) != 0) { in main()
43 if (clock_gettime(CLOCK_MONOTONIC, &ts3) != 0) { in main()
49 if (clock_gettime(CLOCK_MONOTONIC, &ts4) != 0) { in main()
D4-1.c44 if (clock_gettime(CLOCK_PROCESS_CPUTIME_ID, &ts1) != 0) { in main()
51 if (clock_gettime(CLOCK_PROCESS_CPUTIME_ID, &ts2) != 0) { in main()
58 if (clock_gettime(CLOCK_PROCESS_CPUTIME_ID, &ts3) != 0) { in main()
65 if (clock_gettime(CLOCK_PROCESS_CPUTIME_ID, &ts4) != 0) { in main()
Drationale.txt1 For these tests, the date returned by clock_gettime() will be compared
8 clock_gettime(). [Hopefully, clock_gettime() doesn't just _call_
10 However, even if not, it's still a valid test to make sure clock_gettime()
/third_party/ltp/testcases/kernel/syscalls/clock_nanosleep/
Dclock_nanosleep04.c20 …{ .clock_gettime = libc_clock_gettime, .clock_nanosleep = libc_clock_nanosleep, .ts_type = TST_LIB…
23 …{ .clock_gettime = sys_clock_gettime, .clock_nanosleep = sys_clock_nanosleep, .ts_type = TST_KERN_…
27 …{ .clock_gettime = sys_clock_gettime64, .clock_nanosleep = sys_clock_nanosleep64, .ts_type = TST_K…
41 TEST(tv->clock_gettime(tcase[i], tst_ts_get(&ts))); in do_test()
Dclock_nanosleep03.c27 …{ .clock_gettime = libc_clock_gettime, .clock_nanosleep = libc_clock_nanosleep, .ts_type = TST_LIB…
30 …{ .clock_gettime = sys_clock_gettime, .clock_nanosleep = sys_clock_nanosleep, .ts_type = TST_KERN_…
34 …{ .clock_gettime = sys_clock_gettime64, .clock_nanosleep = sys_clock_nanosleep64, .ts_type = TST_K…
42 ret = tv->clock_gettime(CLOCK_MONOTONIC, tst_ts_get(ts)); in do_clock_gettime()
/third_party/musl/libc-test/src/functionalext/thread/
Dpthread_cond_timedwait.c62 EXPECT_EQ(clock_gettime(CLOCK_REALTIME, &ts), 0); in pthread_cond_timedwait_0010()
89 EXPECT_EQ(clock_gettime(CLOCK_REALTIME, &ts), 0); in pthread_cond_timedwait_0020()
112 EXPECT_EQ(clock_gettime(CLOCK_REALTIME, &ts), 0); in pthread_cond_timedwait_time64_0010()
138 EXPECT_EQ(clock_gettime(CLOCK_MONOTONIC, &ts), 0); in pthread_cond_timedwait_monotonic_np_0010()
248 clock_gettime(CLOCK_REALTIME, &ts); in ClockWaitTimedwait2()
285 clock_gettime(CLOCK_REALTIME, &tsNow); in ClockWaitTimeOut()
326 clock_gettime(CLOCK_MONOTONIC, &ts); in ClockWaitTimedwait4()
363 clock_gettime(CLOCK_MONOTONIC, &tsNow); in ClockWaitTimeOut2()
395 clock_gettime(CLOCK_MONOTONIC, &ts); in ClockWaitTimeMismatch()
422 clock_gettime(CLOCK_REALTIME, &ts); in ClockWaitTimeMismatch2()
[all …]
Dpthread_mutex_ext.c31 clock_gettime(CLOCK_REALTIME, &tsNow); in PthreadClocklockOutRealTime()
99 clock_gettime(CLOCK_MONOTONIC, &tsNow); in PthreadClocklockOutMonoTime()
165 clock_gettime(CLOCK_REALTIME, &tsNow); in PthreadClocklockOutRealTime2()
170 clock_gettime(CLOCK_REALTIME, &tsNow); in PthreadClocklockOutRealTime2()
222 clock_gettime(CLOCK_MONOTONIC, &tsNow); in pthread_mutex_clocklock_0060()
229 clock_gettime(CLOCK_REALTIME, &tsNow); in pthread_mutex_clocklock_0060()
246 clock_gettime(CLOCK_MONOTONIC, &tsNow); in PthreadTimedlockMonotonicNPOut()
329 clock_gettime(CLOCK_MONOTONIC, &tsNow); in PthreadLockTimeoutNPOut()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/fork/
D22-1.c85 ret = clock_gettime(clp, &tp); in main()
104 ret = clock_gettime(clt, &tp); in main()
131 ret = clock_gettime(clp, &tp); in main()
152 ret = clock_gettime(clt, &tp); in main()
/third_party/spirv-tools/source/util/
Dtimer.cpp47 if (clock_gettime(CLOCK_MONOTONIC, &wall_before_) == -1) in Start()
49 if (clock_gettime(CLOCK_PROCESS_CPUTIME_ID, &cpu_before_) == -1) in Start()
58 if (clock_gettime(CLOCK_PROCESS_CPUTIME_ID, &cpu_after_) == -1) in Stop()
60 if (clock_gettime(CLOCK_MONOTONIC, &wall_after_) == -1) in Stop()
/third_party/skia/third_party/externals/spirv-tools/source/util/
Dtimer.cpp47 if (clock_gettime(CLOCK_MONOTONIC, &wall_before_) == -1) in Start()
49 if (clock_gettime(CLOCK_PROCESS_CPUTIME_ID, &cpu_before_) == -1) in Start()
58 if (clock_gettime(CLOCK_PROCESS_CPUTIME_ID, &cpu_after_) == -1) in Stop()
60 if (clock_gettime(CLOCK_MONOTONIC, &wall_after_) == -1) in Stop()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/util/
Dtimer.cpp47 if (clock_gettime(CLOCK_MONOTONIC, &wall_before_) == -1) in Start()
49 if (clock_gettime(CLOCK_PROCESS_CPUTIME_ID, &cpu_before_) == -1) in Start()
58 if (clock_gettime(CLOCK_PROCESS_CPUTIME_ID, &cpu_after_) == -1) in Stop()
60 if (clock_gettime(CLOCK_MONOTONIC, &wall_after_) == -1) in Stop()
/third_party/musl/libc-test/src/functionalext/supplement/thread/
Dpthread_rwlock_timedrdlock.c32 clock_gettime(CLOCK_REALTIME, &ts); in pthread_rwlock_timedrdlock_0100()
58 clock_gettime(CLOCK_REALTIME, &ts); in pthread_rwlock_timedrdlock_0200()
82 clock_gettime(CLOCK_REALTIME, &ts); in pthread_rwlock_timedrdlock_0300()
104 clock_gettime(CLOCK_REALTIME, &ts); in pthread_rwlock_timedrdlock_time64_0100()
Dpthread_rwlock_timedwrlock.c32 clock_gettime(CLOCK_REALTIME, &ts); in pthread_rwlock_timedwrlock_0100()
58 clock_gettime(CLOCK_REALTIME, &ts); in pthread_rwlock_timedwrlock_0200()
82 clock_gettime(CLOCK_REALTIME, &ts); in pthread_rwlock_timedwrlock_0300()
104 clock_gettime(CLOCK_REALTIME, &ts); in pthread_rwlock_timedwrlock_time64_0100()
/third_party/ltp/testcases/kernel/syscalls/clock_settime/
Dclock_settime01.c28 …{ .clock_gettime = libc_clock_gettime, .clock_settime = libc_clock_settime, .ts_type = TST_LIBC_TI…
31 …{ .clock_gettime = sys_clock_gettime, .clock_settime = sys_clock_settime, .ts_type = TST_KERN_OLD_…
35 …{ .clock_gettime = sys_clock_gettime64, .clock_settime = sys_clock_settime64, .ts_type = TST_KERN_…
49 ret = tv->clock_gettime(CLOCK_REALTIME, tst_ts_get(ts)); in do_clock_gettime()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/clock_getcpuclockid/
D2-1.c53 if (clock_gettime(clockid_1, &t1) != 0) { in main()
58 if (clock_gettime(clockid_2, &t2) != 0) { in main()
63 if (clock_gettime(CLOCK_PROCESS_CPUTIME_ID, &t3) != 0) { in main()
/third_party/ltp/testcases/kernel/syscalls/timerfd/
Dtimerfd04.c40 …{ .clock_gettime = sys_clock_gettime, .tfd_settime = sys_timerfd_settime, .ts_type = TST_KERN_OLD_…
44 …{ .clock_gettime = sys_clock_gettime64, .tfd_settime = sys_timerfd_settime64, .ts_type = TST_KERN_…
66 if (tv->clock_gettime(tc->clk_id, tst_ts_get(&start))) { in verify_timerfd()
97 if (tv->clock_gettime(CLOCK_MONOTONIC, tst_ts_get(&end))) { in verify_timerfd()
/third_party/ffmpeg/libavutil/
Dtime.c60 if (&clock_gettime) in av_gettime_relative()
64 clock_gettime(CLOCK_MONOTONIC, &ts); in av_gettime_relative()
75 if (!&clock_gettime) in av_gettime_relative_is_monotonic()
/third_party/ltp/testcases/open_posix_testsuite/functional/timers/clocks/
Dtwopsetclock.c36 if (clock_gettime(CLOCK_REALTIME, &tsreset) != 0) { in main()
50 if (clock_gettime(CLOCK_REALTIME, &tpget) == -1) { in main()
73 if (clock_gettime(CLOCK_REALTIME, &tpget) == -1) { in main()
/third_party/rust/crates/nix/test/
Dtest_time.rs9 use nix::time::{clock_gettime, ClockId};
19 clock_gettime(ClockId::CLOCK_REALTIME).expect("assertion failed"); in test_clock_gettime()
32 clock_gettime(clock_id).unwrap(); in test_clock_getcpuclockid()

12345678910>>...19