Expand description
Time utility functions for the monitor module
This module provides high-precision timing utilities using the quanta crate for monotonic time measurements and standard library functions for epoch timestamps.
Structs§
- Timing
Utils - High-precision clock for timing operations
Functions§
- current_
date - Get current date string in YYYYMMDD format
- current_
datetime - Get current datetime string in ISO format
- days_
ago - Get date that is N days ago from now
- monotonic_
millis - Get monotonic timestamp in milliseconds since program start Use this for performance measurements, durations, and intervals WARNING: This is NOT epoch time - do not use for persistence or external APIs
- monotonic_
nanos - Get monotonic timestamp in nanoseconds since program start Use this for performance measurements, durations, and intervals WARNING: This is NOT epoch time - do not use for persistence or external APIs
- now_
millis - Get current timestamp in milliseconds since Unix epoch
- now_
nanos - Get current timestamp in nanoseconds since Unix epoch
- now_
seconds - Get current timestamp in seconds since Unix epoch
- timing
- Get the global timing utility instance