Price your future right. 60% off with code BLACKSCHOLES at USD checkout. Offer ends in 8d 09h 54m 19s8 days 9 hours 54 minutes 19 seconds.
Price your future right. 60% off with code BLACKSCHOLES at USD checkout. Offer ends in 8d 09h 54m 19s8 days 9 hours 54 minutes 19 seconds.

Sign in to watch this lesson
Trading Networks · 3:58
A latency number is only as good as where the timestamp was taken and the clock that took it. We compare an application's clock read, the kernel's software stamp (SO_TIMESTAMP here, SO_TIMESTAMPING on Linux) and a NIC hardware stamp from the card's PTP hardware clock, see why crystals drift and why NTP's milliseconds (about 10 ms off, ±22 ms on this Mac) are too coarse, and solve PTP's four timestamps for offset and delay, including a loopback run against a deliberately wrong clock and the error a one-way asymmetry introduces. We finish with how firms measure tick-to-trade and the MiFID II and US CAT clock rules (industry practice, not K&R).