Home
last modified time | relevance | path

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

/third_party/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()
/third_party/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()
/third_party/ltp/testcases/realtime/lib/
Dlibrttest.c455 while (ts->tv_nsec > NS_PER_SEC) { in ts_normalize()
457 ts->tv_nsec -= NS_PER_SEC; in ts_normalize()
459 while (ts->tv_nsec < -NS_PER_SEC) { in ts_normalize()
461 ts->tv_nsec += NS_PER_SEC; in ts_normalize()
467 ts->tv_nsec += NS_PER_SEC; in ts_normalize()
471 ts->tv_nsec -= NS_PER_SEC; in ts_normalize()
492 *ns = (nsec_t) ts->tv_sec * NS_PER_SEC + ts->tv_nsec; in ts_to_nsec()
503 ts->tv_sec = ns / NS_PER_SEC; in nsec_to_ts()
504 ts->tv_nsec = ns % NS_PER_SEC; in nsec_to_ts()
/third_party/ltp/testcases/realtime/func/rt-migrate/
Drt-migrate.c466 intv.tv_sec = INTERVAL / NS_PER_SEC; in main()
467 intv.tv_nsec = INTERVAL % (1 * NS_PER_SEC); in main()
/third_party/ltp/testcases/realtime/include/
Dlibrttest.h72 #define NS_PER_SEC 1000000000 macro
/third_party/ltp/testcases/realtime/func/sched_latency/
Dsched_latency.c272 (int)(iterations * ((float)period / NS_PER_SEC))); in main()
/third_party/node/doc/api/
Dprocess.md2078 const NS_PER_SEC = 1e9;
2086 console.log(`Benchmark took ${diff[0] * NS_PER_SEC + diff[1]} nanoseconds`);
2094 const NS_PER_SEC = 1e9;
2102 console.log(`Benchmark took ${diff[0] * NS_PER_SEC + diff[1]} nanoseconds`);