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