Home
last modified time | relevance | path

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

12345678910>>...20

/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/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/boost/boost/chrono/detail/inlined/posix/
Dthread_clock.hpp31 if ( ::clock_gettime( CLOCK_THREAD_CPUTIME_ID, &ts ) ) in now()
39 if ( ::clock_gettime( clock_id, &ts ) ) in now()
57 if ( ::clock_gettime( CLOCK_THREAD_CPUTIME_ID, &ts ) ) in now()
65 if ( ::clock_gettime( clock_id, &ts ) ) in now()
Dchrono.hpp25 if ( ::clock_gettime( CLOCK_REALTIME, &ts ) ) in now()
38 if ( ::clock_gettime( CLOCK_REALTIME, &ts ) ) in now()
86 if ( ::clock_gettime( CLOCK_MONOTONIC, &ts ) ) in now()
108 if ( ::clock_gettime( CLOCK_MONOTONIC, &ts ) ) in now()
/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/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/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/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/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/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()
235 clock_gettime(CLOCK_REALTIME, &ts); in ClockWaitTimedwait2()
272 clock_gettime(CLOCK_REALTIME, &tsNow); in ClockWaitTimeOut()
313 clock_gettime(CLOCK_MONOTONIC, &ts); in ClockWaitTimedwait4()
350 clock_gettime(CLOCK_MONOTONIC, &tsNow); in ClockWaitTimeOut2()
382 clock_gettime(CLOCK_MONOTONIC, &ts); in ClockWaitTimeMismatch()
409 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()
315 clock_gettime(CLOCK_MONOTONIC, &tsNow); in PthreadLockTimeoutNPOut()
/third_party/musl/libc-test/src/functionalext/supplement/thread/
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()
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()
/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/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/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/boost/libs/config/test/
Dboost_has_clock_gettime.ipp9 // TITLE: clock_gettime
10 // DESCRIPTION: The platform supports POSIX standard API clock_gettime.
21 int res = clock_gettime(CLOCK_REALTIME, &tp);
/third_party/ltp/testcases/kernel/syscalls/utils/
Dmq_timed.h14 …{ .clock_gettime = libc_clock_gettime, .mqt_send = libc_mq_timedsend, .mqt_receive = libc_mq_timed…
17 …{ .clock_gettime = sys_clock_gettime, .mqt_send = sys_mq_timedsend, .mqt_receive = sys_mq_timedrec…
21 …{ .clock_gettime = sys_clock_gettime64, .mqt_send = sys_mq_timedsend64, .mqt_receive = sys_mq_time…

12345678910>>...20