Main Page | Data Structures | File List | Data Fields | Globals | Related Pages

include/time.h File Reference

Interface: Time-related data and types. More...

#include <config.h>

Include dependency graph for time.h:

Include dependency graph

Go to the source code of this file.

Defines

#define TICK_IN_MS   1
 timer tick in ms

#define TICKS_PER_SEC   1000
 number of mS tics in 1Sec

#define SECS_TO_TICKS(a)   ((a)*TICKS_PER_SEC)
 conv. Sec's to TICKs

#define MSECS_TO_TICKS(a)   ((a)/TICK_IN_MS)
 conv. mSec's to TICKs


Typedefs

typedef unsigned long time_t
 time type


Functions

time_t get_system_up_time (void)


Detailed Description

Interface: Time-related data and types.

Author:
Markus L. Noga <markus@noga.de>

Bug:
time_t is a 32 bit value which will overflow after 49.7 days of continuous operation.

Definition in file time.h.


Define Documentation

#define MSECS_TO_TICKS  )     ((a)/TICK_IN_MS)
 

conv. mSec's to TICKs

Definition at line 62 of file time.h.

#define SECS_TO_TICKS  )     ((a)*TICKS_PER_SEC)
 

conv. Sec's to TICKs

Definition at line 61 of file time.h.

#define TICK_IN_MS   1
 

timer tick in ms

Definition at line 57 of file time.h.

#define TICKS_PER_SEC   1000
 

number of mS tics in 1Sec

Definition at line 59 of file time.h.


Typedef Documentation

typedef unsigned long time_t
 

time type

Bug:
This is a 32 bit value which will overflow after 49.7 days of continuous operation.

Definition at line 50 of file time.h.


Function Documentation

time_t get_system_up_time void   ) 
 


brickOS is released under the Mozilla Public License.
Original code copyright 1998-2002 by the authors.

Generated on Mon Feb 16 21:01:56 2004 for brickOS C by doxygen 1.3.5