summaryrefslogtreecommitdiffstats
path: root/tests/conv
diff options
context:
space:
mode:
authorJacob Erlbeck <jerlbeck@sysmocom.de>2015-03-17 10:21:15 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2015-03-18 21:54:37 +0100
commitb61b2ca1a0c63d99c642fe46b0bfef83eb092ba1 (patch)
tree7ddb66573b9662dae7ab52f7d8918773bd0af561 /tests/conv
parent4dafdefa7adaea9ca10b357ed966fdcd183347df (diff)
logging: Implement subsecond resolution of extended timestamps
Currently when using 'logging print extended-timestamp 1', the subsecond part (milliseconds) of the printed timestamp is always 0. This makes it difficult to correlate log entries with PCAP file entries if there are many of them per second. This patch changes _output in logging.c to use gettimeofday() instead of time() when extended timestamps are enabled and replaces the '000' by the milliseconds computed from tv_usec. Sponsored-by: On-Waves ehf
Diffstat (limited to 'tests/conv')
0 files changed, 0 insertions, 0 deletions