diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2010-05-06 10:32:59 +0000 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2010-05-06 10:32:59 +0000 |
commit | 6efcb1adf001eff4cff141733bad798fe2200d14 (patch) | |
tree | dd115ea922b4ddb9753879203b72ca647eb667eb /epan/timestamp.c | |
parent | 7ff0da29332710a8e3acbbcd0ad978ad5dc9bbd3 (diff) |
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
Diffstat (limited to 'epan/timestamp.c')
-rw-r--r-- | epan/timestamp.c | 12 |
1 files changed, 12 insertions, 0 deletions
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; +} |