aboutsummaryrefslogtreecommitdiffstats
path: root/epan/nstime.h
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2007-11-20 18:35:41 +0000
committerGerald Combs <gerald@wireshark.org>2007-11-20 18:35:41 +0000
commitdfb104544f3eba323167b74a8fbe058455cc2a70 (patch)
tree21d6af3d6c0084f57dd12c90a7e32993219ba300 /epan/nstime.h
parent06f0070947a21f5f261210d134f0182b19fe1734 (diff)
Add relative start time, duration, and average data rate (bps) columns
to the conversation lists. Move the "copy" button down to the button bar in order to free up some real estate. Add an nstime_cmp() function. Clean up code in a few places. svn path=/trunk/; revision=23516
Diffstat (limited to 'epan/nstime.h')
-rw-r--r--epan/nstime.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/epan/nstime.h b/epan/nstime.h
index 853e3adc9c..ea97ea5924 100644
--- a/epan/nstime.h
+++ b/epan/nstime.h
@@ -72,6 +72,14 @@ extern void nstime_sum(nstime_t *sum, const nstime_t *b, const nstime_t *a );
/* sum += a */
#define nstime_add(sum, a) nstime_sum(sum, sum, a)
+/* compare two times are return a value similar to memcmp() or strcmp().
+ *
+ * a > b : > 0
+ * a = b : 0
+ * a < b : < 0
+ */
+extern int nstime_cmp(nstime_t *a, const nstime_t *b );
+
/* converts nstime to double, time base is milli seconds */
extern double nstime_to_msec(const nstime_t *time);