command error_t localtime(const time_t *timer, struct tm *tm);
command error_t asctime(const struct tm *tm, char *buf, int buflen);
command error_t time(time_t *timer);
+ command void setCurrentTime(time_t current_time);
event void tick();
}
return SUCCESS;
}
+ command void Time.setCurrentTime(time_t current_time){
+ atomic g_current_time = current_time;
+ g_local_time = call LocalTime64.get();
+ }
+
void dotick(int force) {
time_t tick = call LocalTime64.get();
if (force || tick >= (g_tick_local_time + 32768L*10)) {