6.12. Time Display Formats And Time References
Prev | Chapter 6. Working With Captured Packets | Next

## 6.12. Time Display Formats And Time References

While packets are captured, each packet is timestamped. These timestamps will be saved to the capture file, so they will be available for later analysis.

A detailed description of timestamps, timezones and alike can be found at: Section 7.6, “Time Stamps”.

The timestamp presentation format and the precision in the packet list can be chosen using the View menu, see Figure 3.5, “The “View” Menu”.

The available presentation formats are:

- Date and Time of Day: 1970-01-01 01:02:03.123456 The absolute date and time of the day when the packet was captured.
- Time of Day: 01:02:03.123456 The absolute time of the day when the packet was captured.
- Seconds Since First Captured Packet: 123.123456 The time relative to the start of the capture file or the first “Time Reference” before this packet (see Section 6.12.1, “Packet Time Referencing”).
- Seconds Since Previous Captured Packet: 1.123456 The time relative to the previous captured packet.
- Seconds Since Previous Displayed Packet: 1.123456 The time relative to the previous displayed packet.
- Seconds Since Epoch (1970-01-01): 1234567890.123456 The time relative to epoch (midnight UTC of January 1, 1970).

The available precisions (aka. the number of displayed decimal places) are:

- Automatic (from capture file) The timestamp precision of the loaded capture file format will be used (the default).
- Seconds, Tenths of a second, Hundredths of a second, Milliseconds, Microseconds or Nanoseconds The timestamp precision will be forced to the given setting. If the actually available precision is smaller, zeros will be appended. If the precision is larger, the remaining decimal places will be cut off.

Precision example: If you have a timestamp and it’s displayed using, “Seconds Since Previous Packet” the value might be 1.123456. This will be displayed using the “Automatic” setting for libpcap files (which is microseconds). If you use Seconds it would show simply 1 and if you use Nanoseconds it shows 1.123456000.

### 6.12.1. Packet Time Referencing

The user can set time references to packets. A time reference is the starting point for all subsequent packet time calculations. It will be useful, if you want to see the time values relative to a special packet, e.g., the start of a new request. It’s possible to set multiple time references in the capture file.

The time references will not be saved permanently and will be lost when you close the capture file.

Time referencing supersedes the value for the time relative to first capture packet. It affects the default Time column if the time display format is set to “Seconds Since First Captured Packet”, or a “Relative Time” column if one has been added. It also affects the `frame.time_relative` field.

To work with time references, choose one of the Time Reference items in the menu:[Edit] menu or from the pop-up menu of the “Packet List” pane. See Section 3.6, “The “Edit” Menu”.

- Set Time Reference (toggle) Toggles the time reference state of the currently selected packet to on or off.
- Find Next Find the next time referenced packet in the “Packet List” pane.
- Find Previous Find the previous time referenced packet in the “Packet List” pane.

Figure 6.14. Wireshark showing a time referenced packet

A time referenced packet will be marked with the string *REF* in the Time column (see packet number 10). All subsequent packets will show the time since the last time reference. If there is a column displayed for “Cumulative Bytes” its counter will also reset at every time reference packet. # Somewhat odd that cumulative bytes also resets.

Time referenced packets will always be displayed in the packet list pane. Display filters will not affect or hide these packets.

Prev | Up | Next
6.11. Ignoring Packets | Home | 6.13. Time Shifting Packets