watchdog_getuptime
if (watchdog_getuptime(&tp_now))
error = watchdog_getuptime(&ts_start);
error = watchdog_getuptime(&ts_end);