From Harald Welte:
[obnox/wireshark/wip.git] / timestats.h
index c4e9223baa4cb256db09be0d1804768f047d5ef9..6e880d2874a8b50cc35b91709d2f4f4b3d4f0aa7 100644 (file)
@@ -4,8 +4,8 @@
  *
  * $Id$
  *
- * Ethereal - Network traffic analyzer
- * By Gerald Combs <gerald@ethereal.com>
+ * Wireshark - Network traffic analyzer
+ * By Gerald Combs <gerald@wireshark.org>
  * Copyright 1998 Gerald Combs
  *
  * This program is free software; you can redistribute it and/or
@@ -43,16 +43,12 @@ typedef struct _timestat_t {
 
 /* functions */
 
-/* delta = b - a */
-extern void get_timedelta(nstime_t *delta, const nstime_t *b, const nstime_t *a );
-
-/* sum += a */
-extern void addtime(nstime_t *sum, const nstime_t *a);
-
-/* converts nstime to gdouble, time base is milli seconds*/
-extern gdouble nstime_to_msec(const nstime_t *time);
+/* Initialize a timestat_t struct */
+extern void time_stat_init(timestat_t *stats);
 
+/* Update a timestat_t struct with a new sample */
 extern void time_stat_update(timestat_t *stats, const nstime_t *delta, packet_info *pinfo);
+
 extern gdouble get_average(const nstime_t *sum, guint32 num);
 
 #endif