Searched refs:NS_PER_SEC (Results 1 – 8 of 8) sorted by relevance
23 #define NS_PER_SEC 1000000000ULL macro111 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()
64 return static_cast<uint64_t>(entry.sec) * NS_PER_SEC + entry.nsec; in nsec()
51 #define NS_PER_SEC 1000000000 macro145 ((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()
455 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()
466 intv.tv_sec = INTERVAL / NS_PER_SEC; in main()467 intv.tv_nsec = INTERVAL % (1 * NS_PER_SEC); in main()
72 #define NS_PER_SEC 1000000000 macro
272 (int)(iterations * ((float)period / NS_PER_SEC))); in main()
2078 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`);