Apps     Components     Interfaces     All Files     Source Tree     source: tos.lib.TinyDB.SimpleTimeM.nc

Component: SimpleTimeM

Author: Su Ping (sping@intel-research.net)

Required Interfaces

Provided Interfaces

Variables

Function Index

Function Descriptions

TimeSet.adjust

command void TimeSet.adjust (int16_t n)

Adjust logical time by n binary milliseconds.

Parameters:

us - unsigned 16 bit interger positive number advances the logical time negtive argument regress the time This operation will not take effect immidiately The adjustment is done duing next clock.fire event handling.

Returns: none

TimeSet.adjustNow

command void TimeSet.adjustNow (int32_t x)

Adjust logical time by x milliseconds.

Parameters:

x - 32 bit interger positive number advances the logical time negtive argument regress the time

Returns: none