Time in C++: std::chrono::high_resolution_clock: Myths and Realities -- Sandor Dargo
std::chrono::high_resolution_clock sounds like the obvious choice when you care about precision, but its name hides some important caveats. In this article, we’ll demystify what “high resolution” really means in <chrono>, why this clock is often just an alias, and when—if ever—it’s actually the right tool to use.
Time in C++: std::chrono::high_resolution_clock - Myths and Realities
by Sandor Dargo
From the article:
If there’s one clock in
<chrono>that causes the most confusion, it’sstd::chrono::high_resolution_clock. The name sounds too tempting — who wouldn’t want “the highest resolution”? But like many things in C++, the details matter.In the earlier parts of this series, we looked at
system_clockas the wall-clock time source, and atsteady_clockas the reliable choice for measuring intervals. This time, we’ll tackle the so-called “high-resolution” clock, separate fact from myth, and see why it’s not always the right choice — even when you think you need precision.What “high resolution” actually means
A clock’s resolution (or precision) is the granularity of its tick period — i.e., the smallest representable step in time for that clock’s
time_point. In<chrono>it’s exposed viaClock::period, astd::ratio.Notice an important difference. I didn’t mention accuracy, only precision. A clock might represent nanoseconds, but still be inaccurate due to hardware or OS scheduling. A higher resolution doesn’t necessarily mean better measurement. For timing, stability and monotonicity matter much more than how fine-grained the tick is.

Coroutines are powerful but require some boilerplate code. Quasar Chunawala explains what you need to implement to get coroutines working.
Memory-safety vulnerabilities remain one of the most persistent and costly risks in large-scale C++ systems, even in well-tested production code. This article explores how hardening the C++ Standard Library—specifically LLVM’s libc++—can deliver meaningful security and reliability gains at massive scale with minimal performance overhead.
This post is in response to two claims about coroutines: 1) Their reference function parameters may become dangling too easily, and 2) They are indistinguishable from regular functions from the declaration alone.