Home
last modified time | relevance | path

Searched refs:NANOSEC (Results 1 – 6 of 6) sorted by relevance

/third_party/libuv/src/unix/
Dposix-hrtime.c28 #undef NANOSEC
29 #define NANOSEC ((uint64_t) 1e9) macro
34 return (((uint64_t) ts.tv_sec) * NANOSEC + ts.tv_nsec); in uv__hrtime()
Dthread.c44 #undef NANOSEC
45 #define NANOSEC ((uint64_t) 1e9) macro
813 ts.tv_sec = timeout / NANOSEC; in uv_cond_timedwait()
814 ts.tv_nsec = timeout % NANOSEC; in uv_cond_timedwait()
820 timeout += tv.tv_sec * NANOSEC + tv.tv_usec * 1e3; in uv_cond_timedwait()
824 ts.tv_sec = timeout / NANOSEC; in uv_cond_timedwait()
825 ts.tv_nsec = timeout % NANOSEC; in uv_cond_timedwait()
/third_party/libuv/test/
Dtest-hrtime.c29 #ifndef NANOSEC
30 # define NANOSEC ((uint64_t) 1e9) macro
48 ASSERT(diff > (uint64_t) 25 * NANOSEC / MILLISEC); in TEST_IMPL()
Dbenchmark-pound.c28 #undef NANOSEC
29 #define NANOSEC ((uint64_t) 1e9) macro
300 secs = (double)(end_time - start_time) / NANOSEC; in pound_it()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_timedwait/
D6-2.c29 #define NANOSEC 1000000000 macro
42 ts.tv_nsec = NANOSEC; in main()
/third_party/e2fsprogs/misc/
Dbadblocks.c372 #define NANOSEC (1000000000L) in do_read() macro
406 ts.tv_nsec += NANOSEC; in do_read()
412 if (ts.tv_nsec > NANOSEC) { in do_read()
413 ts.tv_sec += ts.tv_nsec / NANOSEC; in do_read()
414 ts.tv_nsec %= NANOSEC; in do_read()