1 2 3 4 5 6 7 8 9 10 11 12
#include "driver/uptime.h" extern "C" { #include "osapi.h" #include "user_interface.h" } uint32_t Uptime::get() { return system_get_time(); } Uptime uptime;