ITCH 5.0 Market Data Handler 1.0.0
NASDAQ ITCH 5.0 Market Data Feed Handler
Loading...
Searching...
No Matches
HRClock.h File Reference

High-resolution clock for precise time measurements. More...

Detailed Description

High-resolution clock for precise time measurements.

This file provides a high-resolution clock abstraction for accurate time measurements and latency tracking. The clock uses platform-specific high-resolution timers to provide nanosecond-precision timestamps.

Platform implementations:

  • Windows: Uses QueryPerformanceCounter (QPC) for microsecond precision
  • Linux: Uses clock_gettime(CLOCK_MONOTONIC) or TSC for nanosecond precision

The clock provides:

  • Monotonic time source (never goes backwards)
  • Nanosecond-level precision
  • Efficient duration conversions
  • Elapsed time calculations
Note
Thread-safe: All methods are thread-safe and reentrant
Monotonic: Time values never decrease, unaffected by system clock adjustments
#include <cstdint>

Classes

struct  b2bits::HRClock
 High-resolution monotonic clock. More...

Namespaces

namespace  b2bits