Skip to main content

timestamp

Function timestamp 

Source
pub fn timestamp() -> u64
Expand description

A cycle timestamp (hpmcounter3, CSR 0xC03) for trace entry headers.

Applies the RTLMIN-6496 workaround: four back-to-back reads of CSR 0xC03 in a 16-byte-aligned block; the fourth read is the reliable value.