DigiNews

Tech Watch Articles

← Back to articles

Considering Strictly Monotonic Time

Quality: 8/10 Relevance: 9/10

Summary

The post explains how to enforce strictly monotonic time by clamping the OS monotonic time with a guard and advancing it by 1ns to guarantee strict monotonicity. It argues that strict monotonicity tightens time-based asserts and helps catch bugs where the same time value is reused, while noting the need for sufficiently high resolution (nanoseconds) and trade-offs with clock guarantees (citing a Rust PR).

🚀 Service construit par Johan Denoyer