Home
last modified time | relevance | path

Searched refs:NANOS_PER_SEC (Results 1 – 6 of 6) 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()