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

Class timespec

ds4_web.c:126–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124
125static double web_now_sec(void) {
126 struct timespec ts;
127 clock_gettime(CLOCK_MONOTONIC, &ts);
128 return (double)ts.tv_sec + (double)ts.tv_nsec / 1000000000.0;
129}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected