From 6efcb1adf001eff4cff141733bad798fe2200d14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig=20Bj=C3=B8rlykke?= Date: Thu, 6 May 2010 10:32:59 +0000 Subject: Added an option to display seconds as hours, minutes and seconds in the packet list, on this format: "1h 2m 3.456s". svn path=/trunk/; revision=32683 --- epan/timestamp.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'epan/timestamp.c') diff --git a/epan/timestamp.c b/epan/timestamp.c index a3d85b3c19..494e6df863 100644 --- a/epan/timestamp.c +++ b/epan/timestamp.c @@ -34,6 +34,8 @@ static ts_type timestamp_type = TS_NOT_SET; static int timestamp_precision = TS_PREC_AUTO_USEC; +static ts_seconds_type timestamp_seconds_type = TS_SECONDS_NOT_SET; + ts_type timestamp_get_type(void) { return timestamp_type; @@ -55,3 +57,13 @@ void timestamp_set_precision(int tsp) timestamp_precision = tsp; } + +ts_seconds_type timestamp_get_seconds_type(void) +{ + return timestamp_seconds_type; +} + +void timestamp_set_seconds_type(ts_seconds_type ts_t) +{ + timestamp_seconds_type = ts_t; +} -- cgit v1.2.3