MCPcopy Create free account
hub / github.com/78/tenbox / WallClockMs

Function WallClockMs

src/daemon/resource_monitor.cpp:17–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15namespace {
16
17int64_t WallClockMs() {
18 using namespace std::chrono;
19 return duration_cast<milliseconds>(steady_clock::now().time_since_epoch()).count();
20}
21
22// Reads utime+stime from /proc/<pid>/stat. Returns 0 if the pid is gone.
23// /proc/<pid>/stat format: pid (comm) state ppid ... utime(14) stime(15) ...

Callers 1

SampleMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected