Skip to content

Functions

C

  • function clock_elapsed(uint64_t) Returns the elapsed time in seconds since start_time, based on clock_now .
  • function clock_frequency() Returns the number of ticks per second for the clock used in clock_now().
  • function clock_now() Returns the current value of the OS's highest-resolution monotonic clock. On modern hardware, these typically map to hardware instructions (RDTSC/CNTVCT_EL0) via user-mode shared pages, avoiding a heavy syscall context switch.

G

  • function get_cpu() Returns the CPU instruction set selected for use at runtime.

M

O

R

  • function rdtsc() Reads the processor's cycle counter.

S

  • function steady_time() Returns the current time in nanoseconds since epoch using steady_clock.
This file was generated by cxxdox, a C++ documentation generator based on MkDocs Material and libclang.