一.Etimer概述 Etimer提供产生时间事件(timed event)的机制,当设定好的timer到期时,将会给设定etimer的process发送一个PROCESS_EVENT_TIMER 事件. Etimer模块调用clock_time获得当前系统的时间. The Contiki etimer library provides a timer mechanism that generate timed events. An event timer will post the event…
一.functions for handling system time clock_time_t clock_time(void);//return the current system time in clock ticks unsigned long clock_seconds(void);//return the system time in seconds void clock_set_seconds(unsigned long ec);//set the value of the p…