esp_log_timestamp64() function
Get the timestamp in milliseconds for logging. This function retrieves the timestamp in milliseconds for logging purposes. If the critical flag is set then uint32 timestamp is returned due to cpu ticks being used for this case. For some applications this uint32 timestamp may overflow after 4294967295/1000/86400 = 49 days of operation.
Syntax
uint64_t esp_log_timestamp64(bool critical); Arguments
critical
Flag indicating whether the timestamp is needed for a critical log. If this flag is true, it means the function is called in one of the following states: - early stage, when the Freertos scheduler is not running, - ISR, - CACHE is disabled.
Return value
The uint64 timestamp in milliseconds.