Home
last modified time | relevance | path

Searched refs:clock_getres (Results 1 - 25 of 59) sorted by relevance

123

/third_party/musl/libc-test/src/functionalext/supplement/time/
H A Dclock_getres.c29 int result = clock_getres(CLOCK_REALTIME, &ts); in clock_getres_0100()
41 int result = clock_getres(CLOCK_TAI, &ts); in clock_getres_0200()
53 int result = clock_getres(CLOCK_MONOTONIC, &ts); in clock_getres_0300()
65 int result = clock_getres(CLOCK_BOOTTIME, &ts); in clock_getres_0400()
77 int result = clock_getres(100, &ts); in clock_getres_0500()
/third_party/musl/libc-test/src/functionalext/supplement/time/time_gtest/
H A Dsys_clock_test.cpp13 * @tc.desc: Ensure that the clock_getres function returns the expected time precision when the CLOCK_REALTIME
21 int result = clock_getres(CLOCK_REALTIME, &times); in HWTEST_F()
29 * @tc.desc: Ensure that the clock_getres function returns the expected time precision when the CLOCK_MONOTONIC
36 int result = clock_getres(CLOCK_MONOTONIC, &times); in HWTEST_F()
44 * @tc.desc: Ensure that the clock_getres function can successfully execute with the CLOCK_PROCESS_CPUTIME_ID
51 int result = clock_getres(CLOCK_PROCESS_CPUTIME_ID, &times); in HWTEST_F()
57 * @tc.desc: Ensure that the clock_getres function can successfully execute with the CLOCK_THREAD_CPUTIME_ID parameter
64 int result = clock_getres(CLOCK_THREAD_CPUTIME_ID, &times); in HWTEST_F()
75 int result = clock_getres(CLOCK_MONOTONIC_RAW, &times); in HWTEST_F()
82 * @tc.desc: Verify that the clock_getres functio
[all...]
/third_party/node/test/wasi/c/
H A Dclock_getres.c9 r = clock_getres(CLOCK_REALTIME, &ts); in main()
11 r = clock_getres(CLOCK_MONOTONIC, &ts); in main()
13 r = clock_getres(CLOCK_PROCESS_CPUTIME_ID, &ts); in main()
15 r = clock_getres(CLOCK_THREAD_CPUTIME_ID, &ts); in main()
/third_party/rust/crates/rustix/src/time/
H A Dclock.rs9 /// `clock_getres(id)`—Returns the resolution of a clock.
15 /// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/clock_getres.html
16 /// [Linux]: https://man7.org/linux/man-pages/man2/clock_getres.2.html
20 pub fn clock_getres(id: ClockId) -> Timespec { in clock_getres() functions
21 backend::time::syscalls::clock_getres(id) in clock_getres()
H A Dmod.rs11 pub use clock::clock_getres;
/third_party/rust/crates/rustix/src/backend/libc/time/
H A Dsyscalls.rs48 pub(crate) fn clock_getres(id: ClockId) -> Timespec {
51 // 32-bit gnu version: libc has `clock_getres` but it is not y2038 safe by
66 // Main version: libc is y2038 safe and has `clock_getres`.
72 let _ = c::clock_getres(id as c::clockid_t, timespec.as_mut_ptr());
84 ret(c::clock_getres( in clock_getres_old()
119 // Use `unwrap()` here because `clock_getres` can fail if the clock itself
/third_party/musl/porting/uniproton/kernel/include/
H A Dtime.h102 int clock_getres (clockid_t, struct timespec *);
149 __REDIR(clock_getres, __clock_getres_time64);
/third_party/musl/porting/liteos_m/user/include/
H A Dtime.h101 int clock_getres (clockid_t, struct timespec *);
148 __REDIR(clock_getres, __clock_getres_time64);
/third_party/musl/porting/liteos_m/kernel/include/
H A Dtime.h102 int clock_getres (clockid_t, struct timespec *);
149 __REDIR(clock_getres, __clock_getres_time64);
/third_party/ltp/testcases/kernel/syscalls/clock_gettime/
H A Dclock_gettime04.c97 clock_getres(CLOCK_REALTIME, &res); in setup()
100 clock_getres(CLOCK_REALTIME_COARSE, &res); in setup()
/third_party/rust/crates/nix/src/
H A Dtime.rs48 clock_getres(self) in res()
224 /// [clock_getres(2)](https://pubs.opengroup.org/onlinepubs/7908799/xsh/clock_getres.html)).
227 pub fn clock_getres(clock_id: ClockId) -> Result<TimeSpec> { in clock_getres() functions
230 unsafe { libc::clock_getres(clock_id.as_raw(), c_time.as_mut_ptr()) }; in clock_getres()
/third_party/musl/porting/liteos_a/kernel/include/
H A Dtime.h117 int clock_getres (clockid_t, struct timespec *);
164 __REDIR(clock_getres, __clock_getres_time64);
/third_party/musl/include/
H A Dtime.h104 int clock_getres (clockid_t, struct timespec *);
151 __REDIR(clock_getres, __clock_getres_time64);
/third_party/ltp/testcases/open_posix_testsuite/conformance/definitions/time_h/
H A D12-1-buildonly.c10 int clock_getres(clockid_t, struct timespec *);
21 dummyvar = clock_getres; in dummyfcn()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/clock_getres/
H A D5-1.c8 * Test that clock_getres() returns -1 on failure.
20 if (clock_getres(INVALIDCLOCKID, &res) == -1) { in main()
H A D6-1.c8 * Test that clock_getres() sets errno=EINVAL if clock_id does not
22 if (clock_getres(INVALIDCLOCKID, &res) == -1) { in main()
31 printf("clock_getres() did not return -1\n"); in main()
H A D3-1.c9 * Test that clock_getres() supports a clock_id of CLOCK_MONOTONIC if
28 if (clock_getres(CLOCK_MONOTONIC, &res) == 0) { in main()
37 printf("clock_getres() success, but res not filled\n"); in main()
40 printf("clock_getres() failed\n"); in main()
H A D1-1.c8 * Test that clock_getres() returns the resolution of clock_id in res.
26 if (clock_getres(CLOCK_REALTIME, &res) == 0) { in main()
35 printf("clock_getres() success, but res not filled\n"); in main()
38 printf("clock_getres() failed\n"); in main()
H A D6-2.c8 * Test that clock_getres() sets errno=EINVAL for a variety of
42 printf("clock_getres(%d, &res);\n", invalid_tests[i]); in main()
43 if (clock_getres(invalid_tests[i], &res) == -1) { in main()
49 printf("clock_getres() != -1\n"); in main()
H A D8-1.c7 * Test that clock_getres() returns the resolution of clock_id in res.
33 if (clock_getres(CLOCK_THREAD_CPUTIME_ID, &res) == 0) { in main()
42 printf("clock_getres() success, but res not filled\n"); in main()
45 printf("clock_getres() failed\n"); in main()
H A D7-1.c7 * Test that clock_getres() returns the resolution of clock_id in res.
33 if (clock_getres(CLOCK_PROCESS_CPUTIME_ID, &res) == 0) { in main()
42 printf("clock_getres() success, but res not filled\n"); in main()
45 printf("clock_getres() failed\n"); in main()
/third_party/musl/compat/time32/
H A Dclock_getres_time32.c7 int r = clock_getres(clk, &ts); in __clock_getres_time32()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_condattr_setclock/
H A D1-2.c35 rc = clock_getres(CLOCK_MONOTONIC, &ts); in main()
/third_party/pulseaudio/src/pulsecore/
H A Dcore-rtclock.c134 if (clock_getres(CLOCK_MONOTONIC, &ts) >= 0) in pa_rtclock_hrtimer()
139 pa_assert_se(clock_getres(CLOCK_REALTIME, &ts) == 0); in pa_rtclock_hrtimer()
/third_party/musl/porting/linux/user/src/time/
H A Dclock_getres.c40 int clock_getres(clockid_t clk, struct timespec *ts) in clock_getres() function

Completed in 9 milliseconds

123