MCPcopy Create free account
hub / github.com/Hamlib/Hamlib / monotonic_seconds

Function monotonic_seconds

lib/precise_time.c:30–35  ·  view source on GitHub ↗

return current tick time in seconds

Source from the content-addressed store, hash-verified

28#if 0
29// return current tick time in seconds
30double monotonic_seconds()
31{
32 static struct timeval t1;
33 gettimeofday(&t1, NULL);
34 return t1.tv_sec + t1.tv_usec / 1e6;
35}
36
37#else
38

Callers 1

hl_usleepFunction · 0.85

Calls 3

gettimeofdayFunction · 0.85
clock_gettimeFunction · 0.85
rdtscFunction · 0.85

Tested by

no test coverage detected