diff options
author | Guy Harris <guy@alum.mit.edu> | 2015-05-16 13:48:04 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2015-05-16 22:24:29 +0000 |
commit | 1715be25b1fa6c76aeb8ca69fb9d495e93ba4ece (patch) | |
tree | de71e170d6c04f9d835bf39f81523cd33464f13e /ui/mcast_stream.h | |
parent | b4a68bcd4934bad6bd78c05d5630a93cf4639edd (diff) |
Use nstime_t for time stamps.
Don't roll our own time stamp handling, use nstime_t. That also gives
us nanosecond resolution, for what that's worth.
Change-Id: Ib9945bdef5a70e1656b96995f510507da36b4b59
Reviewed-on: https://code.wireshark.org/review/8489
Petri-Dish: Guy Harris <guy@alum.mit.edu>
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'ui/mcast_stream.h')
-rw-r--r-- | ui/mcast_stream.h | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/ui/mcast_stream.h b/ui/mcast_stream.h index a32a059b19..b1f350dd6b 100644 --- a/ui/mcast_stream.h +++ b/ui/mcast_stream.h @@ -40,7 +40,7 @@ extern "C" { /* typedefs for sliding window and buffer size */ typedef struct buffer{ - struct timeval *buff; /* packet times */ + nstime_t *buff; /* packet times */ gint32 first; /* pointer to the first element */ gint32 last; /* pointer to the last element */ gint32 burstsize; /* current burst */ @@ -69,12 +69,9 @@ typedef struct _mcast_stream_info { guint32 first_frame_num; /* frame number of first frame */ /* start of recording (GMT) of this stream */ - guint32 start_sec; /* seconds */ - guint32 start_usec; /* microseconds */ - guint32 start_rel_sec; /* start stream rel seconds */ - guint32 start_rel_usec; /* start stream rel microseconds */ - guint32 stop_rel_sec; /* stop stream rel seconds */ - guint32 stop_rel_usec; /* stop stream rel microseconds */ + nstime_t start_abs; /* absolute stream start time */ + nstime_t start_rel; /* stream start time relative to first packet in capture */ + nstime_t stop_rel; /* stream stop time relative to first packet in capture */ guint16 vlan_id; /*for the sliding window */ |