This example connects to Wifi + MQTT and logs the times that was needed the last connection.
timers:
1: after initialize nvs
2: after wifi connect
3: after mqtt connect
4: after subscribed
5: after published message
6: after mqtt block
7: after disconnect mqtt + wifi