esp_wifi_get_tsf_time() function
Get the TSF time In Station mode or SoftAP+Station mode if station is not connected or station doesn't receive at least one beacon after connected, will return 0 @attention Enabling power save may cause the return value inaccurate, except WiFi modem sleep
Arguments
interface
The interface whose tsf_time is to be retrieved.
Return value
0 or the TSF time