Main Page | Modules | Data Structures | File List | Data Fields | Globals | Examples

Clock library


Detailed Description

The clock library is the interface between Contiki and the platform specific clock functionality. The clock library performs a single function: measuring time. Additionally, the clock library provides a macro, CLOCK_SECOND, which corresponds to one second of system time.

Note:
The clock library need in many cases not be used directly. Rather, the timer library should be used.
See also:
Timer library


Defines

#define CLOCK_SECOND
 A second, measured in system clock time.


Functions

void clock_init (void)
 Initialize the clock library.

clock_time_t clock_time (void)
 Get the current clock time.


Function Documentation

void clock_init void   ) 
 

Initialize the clock library.

This function initializes the clock library and should be called from the main() function of the system.

clock_time_t clock_time void   ) 
 

Get the current clock time.

This function returns the current system clock time.

Returns:
The current clock time, measured in system ticks.


Generated on Wed Jul 6 01:19:06 2005 for Contiki/ESB by doxygen 1.3.6