31 #include "contiki-conf.h"
32 #include "sys/clock.h"
33 #include "lib/simEnvChange.h"
35 const struct simInterface clock_interface;
38 clock_time_t simCurrentTime;
49 return simCurrentTime;
55 return simCurrentTime / CLOCK_CONF_SECOND;
64 doInterfaceActionsBeforeTick(
void)
69 doInterfaceActionsAfterTick(
void)
74 SIM_INTERFACE(clock_interface,
75 doInterfaceActionsBeforeTick,
76 doInterfaceActionsAfterTick);
void clock_init(void)
Initialize the clock library.
CCIF clock_time_t clock_time(void)
Get the current clock time.
CCIF unsigned long clock_seconds(void)
Get the current value of the platform seconds.
void clock_delay(unsigned int delay)
Obsolete delay function but we implement it here since some code still uses it.