Searched refs:NS_PER_SEC (Results 1 – 10 of 10) 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()
43 const NS_PER_SEC: u64 = 1_000_000_000; constant55 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()
450 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()
11 #define NS_PER_SEC 1000000000 macro54 dt /= NS_PER_SEC; in bpf_nextcnt()
15 #define NS_PER_SEC 1000000000 macro31 uint64_t delay_ns = ((uint64_t)skb->len) * NS_PER_SEC / in throttle_flow()
73 #define NS_PER_SEC 1000000000 macro
467 intv.tv_sec = INTERVAL / NS_PER_SEC; in main()468 intv.tv_nsec = INTERVAL % (1 * NS_PER_SEC); in main()
272 (int)(iterations * ((float)period / NS_PER_SEC))); in main()