Clocks: monotonic time, TSC, RDTSCP, and calibration
Trading Latency & Measurement Laboratories · Advanced → Expert
Structured lesson outlineThis lesson's video and full tutorial are not yet published. The learning objectives and exercises below outline what the finished lesson will cover.
Learning objectives
Focus on the underlying model and the engineering decisions rather than memorizing a single code snippet.
- 01
Choose between OS clocks, TSC and RDTSCP
- 02
Understand ordering, migration and invariant-TSC risks
- 03
Calibrate cycles to time and quantify clock overhead
Hands-on exercise
Compare clock_gettime and RDTSCP overhead across pinned and unpinned runs.
What a good result looks like
A clock-comparison report with calibration error and ordering assumptions.
APPLY WHAT YOU LEARN
3 related C++ topicsC++ practice problems
01Implement a Price-Time Priority Limit Order BookHFT Systems · HardIn review02Calculate Order Flow Imbalance per Time WindowHFT Systems · MediumIn review03Validate Monotonic Atomic Counter ReadingsConcurrency · EasyIn review
In-review topics are curriculum-linked challenge plans, not yet complete runnable tasks.
Progress is saved on this device.