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

Clock library
[Contiki system]


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 or the event timers should be used.
See also:
Timer library

Event timers


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.

Referenced by timer_expired(), timer_restart(), and timer_set().


Generated on Thu Jun 22 17:45:43 2006 for Contiki 2.x by  doxygen 1.4.4