2 * Defines for packet timestamps
4 * Wireshark - Network traffic analyzer
5 * By Gerald Combs <gerald@wireshark.org>
6 * Copyright 1998 Gerald Combs
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License
10 * as published by the Free Software Foundation; either version 2
11 * of the License, or (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
23 #ifndef __TIMESTAMP_H__
24 #define __TIMESTAMP_H__
26 #include "ws_symbol_export.h"
30 #endif /* __cplusplus */
33 * Type of time-stamp shown in the summary display.
36 TS_RELATIVE, /* Since start of capture */
37 TS_ABSOLUTE, /* Local absolute time, without date */
38 TS_ABSOLUTE_WITH_YMD, /* Local absolute time, with date in YYYY-MM-DD form */
39 TS_ABSOLUTE_WITH_YDOY, /* Local absolute time, with date in YYYY DOY form */
40 TS_DELTA, /* Since previous captured packet */
41 TS_DELTA_DIS, /* Since previous displayed packet */
42 TS_EPOCH, /* Seconds (and fractions) since epoch */
43 TS_UTC, /* UTC absolute time, without date */
44 TS_UTC_WITH_YMD, /* UTC absolute time, with date in YYYY-MM-DD form */
45 TS_UTC_WITH_YDOY, /* UTC absolute time, with date in YYYY DOY form */
48 * Special value used for the command-line setting in Wireshark, to indicate
49 * that no value has been set from the command line.
65 TS_SECONDS_DEFAULT, /* recent */
66 TS_SECONDS_HOUR_MIN_SEC,/* recent */
69 * Special value used for the command-line setting in Wireshark, to indicate
70 * that no value has been set from the command line.
75 WS_DLL_PUBLIC ts_type timestamp_get_type(void);
76 WS_DLL_PUBLIC void timestamp_set_type(ts_type);
78 WS_DLL_PUBLIC int timestamp_get_precision(void);
79 WS_DLL_PUBLIC void timestamp_set_precision(int tsp);
81 WS_DLL_PUBLIC ts_seconds_type timestamp_get_seconds_type(void);
82 WS_DLL_PUBLIC void timestamp_set_seconds_type(ts_seconds_type);
86 #endif /* __cplusplus */
88 #endif /* timestamp.h */