Structs§
- Mock
Time Control - Control handle for advancing mock time within a scope
- Mock
Time Guard - RAII guard for scoped mock time
Functions§
- mock_
time_ advance - Advance mock time by specified milliseconds (convenience alias)
- mock_
time_ advance_ micros - Advance mock time by specified microseconds
- mock_
time_ advance_ millis - Advance mock time by specified milliseconds
- mock_
time_ advance_ nanos - Advance mock time by specified nanoseconds
- mock_
time_ clear - Clear mock time override
- mock_
time_ get - Get current mock time value in milliseconds (convenience alias)
- mock_
time_ get_ micros - Get current mock time value in microseconds
- mock_
time_ get_ millis - Get current mock time value in milliseconds
- mock_
time_ get_ nanos - Get current mock time value in nanoseconds
- mock_
time_ is_ active - Check if mock time is currently active
- mock_
time_ scoped - Set mock time in milliseconds with RAII guard (convenience alias)
- mock_
time_ scoped_ micros - Set mock time in microseconds with RAII guard
- mock_
time_ scoped_ millis - Set mock time in milliseconds with RAII guard
- mock_
time_ scoped_ nanos - Set mock time with RAII guard that restores previous value
- mock_
time_ set - Set mock time to a specific value in milliseconds (convenience alias)
- mock_
time_ set_ micros - Set mock time to a specific value in microseconds
- mock_
time_ set_ millis - Set mock time to a specific value in milliseconds
- mock_
time_ set_ nanos - Set mock time to a specific value in nanoseconds
- mock_
time_ with - Run a function with mock time in milliseconds (convenience alias)
- mock_
time_ with_ control - Run a function with mock time that can be controlled
- mock_
time_ with_ micros - Run a function with mock time in microseconds
- mock_
time_ with_ millis - Run a function with mock time in milliseconds
- mock_
time_ with_ nanos - Run a function with mock time in nanoseconds
- now
- Get current time as DateTime Preserves nanosecond precision when available
- now_
micros - Get current time in microseconds since Unix epoch
- now_
millis - Get current time in milliseconds since Unix epoch
- now_
nanos - Get current time in nanoseconds since Unix epoch In release builds, this is a direct system call In debug builds, this checks for mock time override