MCPcopy Create free account
hub / github.com/antirez/ds4 / timespec

Class timespec

ds4_distributed.c:548–548  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

546
547static double dist_now_sec(void) {
548 struct timespec ts;
549 clock_gettime(CLOCK_MONOTONIC, &ts);
550 return (double)ts.tv_sec + (double)ts.tv_nsec / 1000000000.0;
551}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected