latency-measurement

Community

Sub-microsecond latency with TSC precision

Authormaschad
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Measure sub-microsecond latencies using architecture-specific timestamp counters (TSC) and wait-free histograms, enabling precise timing in real-time and latency-critical systems.

Core Features & Use Cases

  • Architecture-specific TSC reading for ARM64/x86_64 with minimal overhead.
  • Calibrated TSC-to-nanosecond conversion and startup initialization.
  • Logarithmic histogram with wait-free recording and simple percentile calculations.
  • Concurrent measurements with low contention and minimal allocations.

Quick Start

Initialize TSC calibration at startup, then record latencies with the histogram in hot paths.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: latency-measurement
Download link: https://github.com/maschad/my-claude/archive/main.zip#latency-measurement

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.