Define ANJ_TIME_MONOTONIC_AS_STRING
Defined in File time.h
Define Documentation
-
ANJ_TIME_MONOTONIC_AS_STRING(time, unit)
Formats a monotonic timestamp as a duration string in the given unit.
Useful for logs that want to show “time since boot” in milliseconds, etc.
- Parameters:
time – Monotonic timestamp.
unit – Unit to print the value in.
- Returns:
Pointer to a temporary NUL-terminated string; see ANJ_TIME_DURATION_AS_STRING for lifetime details.