MCPcopy Create free account
hub / github.com/F-Stack/f-stack / ts_print

Function ts_print

tools/ndp/ndp.c:1477–1486  ·  view source on GitHub ↗

* Print the timestamp * from tcpdump/util.c */

Source from the content-addressed store, hash-verified

1475 * from tcpdump/util.c
1476 */
1477static void
1478ts_print(const struct timeval *tvp)
1479{
1480 int sec;
1481
1482 /* Default */
1483 sec = (tvp->tv_sec + thiszone) % 86400;
1484 (void)printf("%02d:%02d:%02d.%06u ",
1485 sec / 3600, (sec % 3600) / 60, sec % 60, (u_int32_t)tvp->tv_usec);
1486}
1487
1488#undef NEXTADDR

Callers 1

dumpFunction · 0.85

Calls 1

printfFunction · 0.50

Tested by

no test coverage detected