🕒 nano-clock
Ultra-fast date/time formatting for HTTP headers and system profiling.
Written in Rust, sprinkled with inline assembly, optimized for the lowest latency possible.
🔥 Features
- Returns current date/time in
(i32, u8, u8, u8, u8, u8, u8)tuple format
(year, month, day, hour, minute, second, weekday) - Blazing-fast formatting of HTTP date headers (
Date: ... GMT) in preallocated buffers - Optional inline assembly (
nano_clock_asm) for even lower latency - Includes both
time()(wall-clock) andclock_gettime(CLOCK_MONOTONIC)for monotonic measurements - Zero allocations, no
String, nochrono, no nonsense.
📦 Example
use ;