MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / get_clock_diff

Function get_clock_diff

ut.h:1397–1405  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1395}
1396
1397static inline unsigned long long get_clock_diff(struct timespec *begin)
1398{
1399 struct timespec end;
1400
1401 clock_gettime(CLOCK_REALTIME, &end);
1402
1403 return (end.tv_sec - begin->tv_sec) * 1000000000ULL
1404 + (end.tv_nsec - begin->tv_nsec);
1405}
1406
1407#define __clock_check_diff(__loglv__, start_tmspec, maxdf, fmt, ...) \
1408 do { \

Callers 1

on_request_recvFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected