Home
last modified time | relevance | path

Searched refs:NS_PER_SEC (Results 1 – 10 of 10) sorted by relevance

/external/mesa3d/include/android_stub/log/
Dlog_time.h23 #define NS_PER_SEC 1000000000ULL macro
111 this->tv_nsec = NS_PER_SEC + this->tv_nsec - T.tv_nsec;
125 if (this->tv_nsec >= NS_PER_SEC) {
126 this->tv_nsec -= NS_PER_SEC;
139 return static_cast<uint64_t>(tv_sec) * NS_PER_SEC + tv_nsec; in nsec()
143 tv_nsec / (NS_PER_SEC / US_PER_SEC); in usec()
147 tv_nsec / (NS_PER_SEC / MS_PER_SEC); in msec()
Dlog_read.h64 return static_cast<uint64_t>(entry.sec) * NS_PER_SEC + entry.nsec; in nsec()
/external/ltp/testcases/realtime/func/thread_clock/
Dtc-2.c51 #define NS_PER_SEC 1000000000 macro
145 ((float)sleepts[i].tv_nsec / NS_PER_SEC)); in checkresult()
150 ((float)sleepts[i].tv_nsec / NS_PER_SEC); in checkresult()
157 workts[i].tv_sec + ((float)workts[i].tv_nsec / NS_PER_SEC); in checkresult()
213 retval = checkresult(myts.tv_sec + ((float)myts.tv_nsec / NS_PER_SEC)); in main()
/external/crosvm/sys_util/src/
Dclock.rs43 const NS_PER_SEC: u64 = 1_000_000_000; constant
55 ns_since_epoch: 1_547_163_599 * NS_PER_SEC, in new()
76 Duration::new(ns_diff / NS_PER_SEC, (ns_diff % NS_PER_SEC) as u32) in duration_since()
/external/ltp/testcases/realtime/lib/
Dlibrttest.c450 while (ts->tv_nsec > NS_PER_SEC) { in ts_normalize()
452 ts->tv_nsec -= NS_PER_SEC; in ts_normalize()
454 while (ts->tv_nsec < -NS_PER_SEC) { in ts_normalize()
456 ts->tv_nsec += NS_PER_SEC; in ts_normalize()
462 ts->tv_nsec += NS_PER_SEC; in ts_normalize()
466 ts->tv_nsec -= NS_PER_SEC; in ts_normalize()
487 *ns = (nsec_t) ts->tv_sec * NS_PER_SEC + ts->tv_nsec; in ts_to_nsec()
498 ts->tv_sec = ns / NS_PER_SEC; in nsec_to_ts()
499 ts->tv_nsec = ns % NS_PER_SEC; in nsec_to_ts()
/external/linux-kselftest/tools/testing/selftests/bpf/progs/
Dnetcnt_prog.c11 #define NS_PER_SEC 1000000000 macro
54 dt /= NS_PER_SEC; in bpf_nextcnt()
Dtest_tc_edt.c15 #define NS_PER_SEC 1000000000 macro
31 uint64_t delay_ns = ((uint64_t)skb->len) * NS_PER_SEC / in throttle_flow()
/external/ltp/testcases/realtime/include/
Dlibrttest.h73 #define NS_PER_SEC 1000000000 macro
/external/ltp/testcases/realtime/func/rt-migrate/
Drt-migrate.c467 intv.tv_sec = INTERVAL / NS_PER_SEC; in main()
468 intv.tv_nsec = INTERVAL % (1 * NS_PER_SEC); in main()
/external/ltp/testcases/realtime/func/sched_latency/
Dsched_latency.c272 (int)(iterations * ((float)period / NS_PER_SEC))); in main()