HFT CORE SYSTEMS

Clocks: monotonic time, TSC, RDTSCP, and calibration

Lesson 03 of 96Phase 01: Measurement before optimization
Video lesson coming soon

The written objectives and hands-on lab are available now.

cppvalley on YouTube ↗

Learning objectives

What you should understand

  1. Choose between OS clocks, TSC and RDTSCP
  2. Understand ordering, migration and invariant-TSC risks
  3. Calibrate cycles to time and quantify clock overhead

Lab

Hands-on exercise

Compare clock_gettime and RDTSCP overhead across pinned and unpinned runs.

Deliverable

Evidence of completion

A clock-comparison report with calibration error and ordering assumptions.

Prerequisite
EP 02

Phase 01

Measurement before optimization

Full curriculum