Searched refs:NANOS_PER_SEC (Results 1 – 8 of 8) sorted by relevance
40 (time) = ((uvwasi_timestamp_t)(ts.tv_sec) * NANOS_PER_SEC) + ts.tv_nsec; \50 (time) = ((uvwasi_timestamp_t)(ru.ru_utime.tv_sec) * NANOS_PER_SEC) + \52 ((uvwasi_timestamp_t)(ru.ru_stime.tv_sec) * NANOS_PER_SEC) + \71 (time) = ((uvwasi_timestamp_t)(info.user_time.seconds) * NANOS_PER_SEC) + \73 ((uvwasi_timestamp_t)(info.system_time.seconds) * NANOS_PER_SEC) + \97 (time) = ((uvwasi_timestamp_t)(ts.tv_sec) * NANOS_PER_SEC) + ts.tv_nsec; \118 *time = (tv.tv_sec * NANOS_PER_SEC) + (tv.tv_usec * 1000); in uvwasi__clock_gettime_realtime()
7 #define NANOS_PER_SEC 1000000000 macro
198 return (uvwasi_timestamp_t) ts->tv_sec * NANOS_PER_SEC + ts->tv_nsec; in uvwasi__timespec_to_timestamp()
93 *st_atim = now / NANOS_PER_SEC; in uvwasi__get_filestat_set_times()95 *st_atim = *st_atim / NANOS_PER_SEC; in uvwasi__get_filestat_set_times()97 *st_atim = stat.st_atim / NANOS_PER_SEC; in uvwasi__get_filestat_set_times()100 *st_mtim = now / NANOS_PER_SEC; in uvwasi__get_filestat_set_times()102 *st_mtim = *st_mtim / NANOS_PER_SEC; in uvwasi__get_filestat_set_times()104 *st_mtim = stat.st_mtim / NANOS_PER_SEC; in uvwasi__get_filestat_set_times()
62 #define NANOS_PER_SEC 1000000000 macro249 Local<Number> result = Number::New(env->isolate(), uptime / NANOS_PER_SEC); in Uptime()517 fields[0] = (t / NANOS_PER_SEC) >> 32; in NumberImpl()518 fields[1] = (t / NANOS_PER_SEC) & 0xffffffff; in NumberImpl()519 fields[2] = t % NANOS_PER_SEC; in NumberImpl()
27 constexpr int NANOS_PER_SEC = 1000 * 1000 * 1000; variable629 (uv_hrtime() - per_process::node_start_time) / (NANOS_PER_SEC); in PrintResourceUsage()
190 const NANOS_PER_SEC: i64 = 1_000_000_000; constant195 const TS_MAX_SECONDS: i64 = (i64::MAX / NANOS_PER_SEC) - 1;296 let (secs, nanos) = div_mod_floor_64(nanoseconds, NANOS_PER_SEC); in nanoseconds()346 self.tv_nsec() - NANOS_PER_SEC as timespec_tv_nsec_t in nanos_mod_sec()
2029 static NANOS_PER_SEC: u32 = 1_000_000_000; in deserialize() constant2030 match secs.checked_add((nanos / NANOS_PER_SEC) as u64) { in deserialize()2167 static NANOS_PER_SEC: u32 = 1_000_000_000; in deserialize() constant2168 match secs.checked_add((nanos / NANOS_PER_SEC) as u64) { in deserialize()