aboutsummaryrefslogtreecommitdiffstats
path: root/wsutil/time_util.h
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2017-12-16 14:15:28 -0800
committerMichael Mann <mmann78@netscape.net>2017-12-17 02:30:40 +0000
commit6a5e90f2d91892248f5f7defe1c610e00298d789 (patch)
treef12e93fe35f2c658fb133335d1e8980c93e4dc20 /wsutil/time_util.h
parent18c42e1dca9631b336dd2a8b813aad782569f69a (diff)
Log output updates.
Add a Qt message handler that calls g_log. Add milliseconds to the g_log_message_handler timestamp. Change-Id: I5b1c1d902b6b05cd8daa01741b19d6c2048dfb9a Reviewed-on: https://code.wireshark.org/review/24865 Reviewed-by: Gerald Combs <gerald@wireshark.org> Petri-Dish: Gerald Combs <gerald@wireshark.org> Tested-by: Petri Dish Buildbot Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'wsutil/time_util.h')
-rw-r--r--wsutil/time_util.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/wsutil/time_util.h b/wsutil/time_util.h
index 51a3aa64c3..1775bb62a3 100644
--- a/wsutil/time_util.h
+++ b/wsutil/time_util.h
@@ -45,6 +45,12 @@ void get_resource_usage(double *user_time, double *sys_time);
WS_DLL_PUBLIC
void log_resource_usage(gboolean reset_delta, const char *format, ...);
+/**
+ * Fetch the number of microseconds since midnight (0 hour), January 1, 1970.
+ */
+WS_DLL_PUBLIC
+guint64 create_timestamp(void);
+
#ifdef __cplusplus
}
#endif /* __cplusplus */