wired
libc-free QUIC/HTTP3 SDK in C for x86_64-linux
Loading...
Searching...
No Matches
mono.h File Reference

Monotonic elapsed-time clock (CLOCK_MONOTONIC), for measuring intervals such as connection idle age (RFC 9000 10.1). More...

Go to the source code of this file.

Functions

u64 clock_mono_ms (void)
 Milliseconds from the kernel's monotonic clock.

Detailed Description

Monotonic elapsed-time clock (CLOCK_MONOTONIC), for measuring intervals such as connection idle age (RFC 9000 10.1).

Unlike clock_ymdhms's wall clock it never jumps backward on system time changes.

Function Documentation

◆ clock_mono_ms()

u64 clock_mono_ms ( void )

Milliseconds from the kernel's monotonic clock.

Returns
elapsed ms since an arbitrary fixed origin, or 0 on failure.