What is the use of a timestamp in a network protocol?

A timestamp in a network protocol is used to synchronize clocks between different devices, to measure latency and network performance, and to sequence events in a network stream.