pub fn get_quanta_timestamp_ns(clock: &Clock) -> u64Expand description
Get high-precision monotonic timestamp using quanta Clock
WARNING: This returns nanoseconds since program start (monotonic time), NOT epoch time!
Use this for:
- Performance measurements and benchmarking
- Duration calculations
- Rate limiting windows
- Internal sequence numbers
DO NOT use this for:
- External API timestamps
- Database timestamps
- JWT token timestamps
- Log timestamps
- Any timestamp that needs to survive program restarts
For epoch timestamps, use get_timestamp_ns_result() instead.