//! x86_64 timestamp counter helpers.
use thread;
use ;
/// Inline rdtscp. Returns the TSC value with partial serialization (prevents
/// the CPU from speculatively moving the read across surrounding ops).
/// Walltime-vs-TSC calibration. Sleeps for the requested duration on the
/// calling thread, then derives Hz from the TSC delta. Accuracy improves
/// linearly with the sleep duration; 200 ms on an isolated core gets well
/// under 1ppm, far below SMI-class noise.