Apps
Components
Interfaces
All Files
Source Tree
source:
tos.interfaces.Time.nc
Interface: Time
The Time interface.
Author:
Su Ping <
sping@intel-research.net
>
Components providing this interface:
tos.lib.TinyDB.SimpleTimeM
tos.system.LogicalTime
tos.system.SimpleTime
tos.system.SimpleTimeM
Components requiring this interface:
tos.lib.Attributes.AttrTimeM
tos.lib.TinyDB.TupleRouterM
tos.platform.mica.MicaHighSpeedRadioTinySecM
tos.system.ServiceSchedulerM
Commands
tos_time_t
get
(void)
get current time.
uint32_t
getHigh32
(void)
get the high 32 bits of current time
uint32_t
getLow32
(void)
get the lower 32 bits of current time
uint16_t
getUs
(void)
get clock phase offset since last clock tick in unit of micro-seconds.
Commands - Details
get
tos_time_t
get
(void)
get current time. Return it in tos_time_t structure