Apps Components Interfaces All Files Source Tree | source: tos.interfaces.TimeUtil.nc |
The TimeUtil interface provides utility commands for handling logical time or other 64 bits intergers in Mica platform.
Author: | Su Ping <sping@intel-research.net> |
Commands |
Parameters: |
a - logical time |
Returns: | The higher 32 bits of logical time a |
Parameters: |
a - logical time |
Returns: | The lower 32 bits of logical time a |
Commands - Details |
Parameters: |
a - Logical Time x - A 32 bit integer. If it represent a time, the unit should be binary milliseconds |
Returns: | The new time in tos_time_t format. |
Parameters: |
a - Logical Time x - A unsigned 32 bit integer. If it represent a time, the unit should be binary milliseconds |
Returns: | The difference in tos_time_t format. |
Parameters: |
a - Logical Time x - A unsigned 32 bit integer. If it represent a time, the unit should be binary milliseconds |
Returns: | The result in tos_time_t format. |