* Print the timestamp * from tcpdump/util.c */
| 1475 | * from tcpdump/util.c |
| 1476 | */ |
| 1477 | static void |
| 1478 | ts_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 |