Home
last modified time | relevance | path

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

/third_party/node/deps/uvwasi/src/
Dclocks.c40 (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()
Duv_mapping.h7 #define NANOS_PER_SEC 1000000000 macro
Duv_mapping.c198 return (uvwasi_timestamp_t) ts->tv_sec * NANOS_PER_SEC + ts->tv_nsec; in uvwasi__timespec_to_timestamp()
Duvwasi.c93 *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()
/third_party/node/src/
Dnode_process_methods.cc62 #define NANOS_PER_SEC 1000000000 macro
249 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()
Dnode_report.cc27 constexpr int NANOS_PER_SEC = 1000 * 1000 * 1000; variable
629 (uv_hrtime() - per_process::node_start_time) / (NANOS_PER_SEC); in PrintResourceUsage()
/third_party/rust/crates/nix/src/sys/
Dtime.rs190 const NANOS_PER_SEC: i64 = 1_000_000_000; constant
195 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()
/third_party/rust/crates/serde/serde/src/de/
Dimpls.rs2029 static NANOS_PER_SEC: u32 = 1_000_000_000; in deserialize() constant
2030 match secs.checked_add((nanos / NANOS_PER_SEC) as u64) { in deserialize()
2167 static NANOS_PER_SEC: u32 = 1_000_000_000; in deserialize() constant
2168 match secs.checked_add((nanos / NANOS_PER_SEC) as u64) { in deserialize()