time.h File Reference

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

#include <config.h>
Include dependency graph for time.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define TICK_IN_MS   1
 timer tick in ms More...
 
#define TICKS_PER_SEC   1000
 number of mS tics in 1Sec More...
 
#define SECS_TO_TICKS(a)   ((a)*TICKS_PER_SEC)
 conv. Sec's to TICKs More...
 
#define MSECS_TO_TICKS(a)   ((a)/TICK_IN_MS)
 conv. mSec's to TICKs More...
 

Typedefs

typedef unsigned long time_t
 time type More...
 

Functions

time_t get_system_up_time (void)
 

Detailed Description

Interface: Time-related data and types.

Author
Markus L. Noga marku.nosp@m.s@no.nosp@m.ga.de
Bug:
time_t is a 32 bit value which will overflow after 49.7 days of continuous operation.

Definition in file time.h.

Macro Definition Documentation

#define MSECS_TO_TICKS (   a)    ((a)/TICK_IN_MS)

conv. mSec's to TICKs

Definition at line 62 of file time.h.

#define SECS_TO_TICKS (   a)    ((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-2005 by the authors.

Generated on Sat Feb 14 2015 23:12:03 for brickOS C by doxygen 1.8.9.1