aboutsummaryrefslogtreecommitdiffstats
path: root/epan/nstime.h
diff options
context:
space:
mode:
authorstig <stig@f5534014-38df-0310-8fa8-9805f1628bb7>2011-08-13 17:39:25 +0000
committerstig <stig@f5534014-38df-0310-8fa8-9805f1628bb7>2011-08-13 17:39:25 +0000
commitd40de9c1838a1547aa3d92672dfa987e58ef5385 (patch)
tree7430e8fa4b92e866041eff56b7695a7ef54d1ed4 /epan/nstime.h
parentfc1520da55e9c112d0a5dc13ac4096e005be723c (diff)
From Edwin Groothuis via bug 6179:
Add nstime_copy. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@38509 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/nstime.h')
-rw-r--r--epan/nstime.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/epan/nstime.h b/epan/nstime.h
index 82b9f8319a..166c5700bf 100644
--- a/epan/nstime.h
+++ b/epan/nstime.h
@@ -56,6 +56,12 @@ extern void nstime_set_unset(nstime_t *nstime);
/* is the given nstime_t currently (0,maxint)? */
extern gboolean nstime_is_unset(nstime_t *nstime);
+/** duplicate the current time
+ *
+ * a = b
+ */
+extern void nstime_copy(nstime_t *a, const nstime_t *b);
+
/** calculate the delta between two times (can be negative!)
*
* delta = b-a