Function esp_idf_svc::hal::sys::esp_log_system_timestamp

source ·
pub unsafe extern "C" fn esp_log_system_timestamp() -> *mut i8
Expand description

@brief Function which returns system timestamp to be used in log output

This function is used in expansion of ESP_LOGx macros to print the system time as “HH:MM:SS.sss”. The system time is initialized to 0 on startup, this can be set to the correct time with an SNTP sync, or manually with standard POSIX time functions.

Currently, this will not get used in logging from binary blobs (i.e. Wi-Fi & Bluetooth libraries), these will still print the RTOS tick time.

@return timestamp, in “HH:MM:SS.sss”