aboutsummaryrefslogtreecommitdiffstats
path: root/epan/timestamp.c
diff options
context:
space:
mode:
authorUlf Lamping <ulf.lamping@web.de>2005-08-25 21:29:54 +0000
committerUlf Lamping <ulf.lamping@web.de>2005-08-25 21:29:54 +0000
commit723c80ea90a3c56c069a0a99e22edd43b00cf357 (patch)
treea0bd0c2272cf5b8f96e1364c0e2f7be960df4f69 /epan/timestamp.c
parentbd42437262d885f24cbf0fc96e4b2235aac695a3 (diff)
timestamp display precision:
- automatic adjustment depending on file format - manual adjustment through menu items save the setting in the recent file svn path=/trunk/; revision=15534
Diffstat (limited to 'epan/timestamp.c')
-rw-r--r--epan/timestamp.c18
1 files changed, 16 insertions, 2 deletions
diff --git a/epan/timestamp.c b/epan/timestamp.c
index d948fda3d5..b7cef811f6 100644
--- a/epan/timestamp.c
+++ b/epan/timestamp.c
@@ -32,12 +32,26 @@
* and distinguish it from a command line value */
static ts_type timestamp_type = TS_NOT_SET;
-ts_type get_timestamp_setting(void)
+static int timestamp_precision = TS_PREC_AUTO_USEC;
+
+ts_type timestamp_get_type(void)
{
return timestamp_type;
}
-void set_timestamp_setting(ts_type ts_t)
+void timestamp_set_type(ts_type ts_t)
{
timestamp_type = ts_t;
}
+
+
+int timestamp_get_precision(void)
+{
+ return timestamp_precision;
+}
+
+void timestamp_set_precision(int tsp)
+{
+ timestamp_precision = tsp;
+}
+