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.c41 sys_system.wSecond) * NANOS_PER_SEC) + \
44 sys_user.wSecond) * NANOS_PER_SEC) + \
55 (time) = (ts.tv_sec * NANOS_PER_SEC) + ts.tv_nsec; \
65 (time) = (ru.ru_utime.tv_sec * NANOS_PER_SEC) + \
67 (ru.ru_stime.tv_sec * NANOS_PER_SEC) + \
86 (time) = (info.user_time.seconds * NANOS_PER_SEC) + \
88 (info.system_time.seconds * NANOS_PER_SEC) + \
112 (time) = (ts.tv_sec * NANOS_PER_SEC) + ts.tv_nsec; \
133 *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.c194 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.cc59 #define NANOS_PER_SEC 1000000000 macro
159 fields[0] = (t / NANOS_PER_SEC) >> 32; in Hrtime()
160 fields[1] = (t / NANOS_PER_SEC) & 0xffffffff; in Hrtime()
161 fields[2] = t % NANOS_PER_SEC; in Hrtime()
268 Local<Number> result = Number::New(env->isolate(), uptime / NANOS_PER_SEC); in Uptime()
Dnode_report.cc27 constexpr int NANOS_PER_SEC = 1000 * 1000 * 1000; variable
614 (uv_hrtime() - node::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() variable
2168 match secs.checked_add((nanos / NANOS_PER_SEC) as u64) { in deserialize()