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

Function timediff

src/misc.c:1843–1851  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1841}
1842
1843static long timediff(const struct timeval *tv1, const struct timeval *tv2)
1844{
1845 struct timeval tv;
1846
1847 tv.tv_usec = tv1->tv_usec - tv2->tv_usec;
1848 tv.tv_sec = tv1->tv_sec - tv2->tv_sec;
1849
1850 return ((tv.tv_sec * 1000L) + (tv.tv_usec / 1000L));
1851}
1852
1853
1854/**

Callers 1

rig_check_cache_timeoutFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected