timedef.h File Reference

Description : prototypes of the functions used for timing. More...

#include <bite.h>
#include <time.h>

Include dependency graph for timedef.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define MAX_TICK   4294967295

Functions

void clock_init (void)
 Initializes clock function.
UINT32 clockb (void)
 Determines the processor time used by a program since the program began running.
time_t time (time_t *t)
 Determines the current calendat time, represented in seconds.


Detailed Description

Description : prototypes of the functions used for timing.

Definition in file timedef.h.


Define Documentation

#define MAX_TICK   4294967295

Definition at line 24 of file timedef.h.

Referenced by main(), and serveur_reprog().


Function Documentation

void clock_init ( void   ) 

Initializes clock function.

Note:
The clock_init function is target-system specific. We use timer B of MSP430F1612.
Returns:
Current time represented in ticks.
Note:
1 tick is about 100 micro-secondes

Definition at line 84 of file timerB.c.

References _EINT, Clock_ticks, and TIMER_B_LIMIT.

Referenced by init().

Here is the caller graph for this function:

UINT32 clockb ( void   ) 

Determines the processor time used by a program since the program began running.

Note:
The clock function is target-system specific. You must call clock_init before using clock function.
Returns:
Current time represented in ticks.

Definition at line 60 of file timerB.c.

References _DINT, _EINT, and Clock_ticks.

Referenced by main(), PT_THREAD(), RecepFrame(), serveur_reprog(), and time().

Here is the caller graph for this function:

time_t time ( time_t *  t  ) 

Determines the current calendat time, represented in seconds.

Parameters:
[out] t : If t is not a null pointer, the function assigns the return value to the object that t points to.
Note:
The time function is target-system specific.
Returns:
Current time represented in seconds.

Definition at line 60 of file time.c.

References clockb(), and TICKS_PER_SEC.

Referenced by init().

Here is the call graph for this function:

Here is the caller graph for this function:


Generated on Wed Jun 3 12:06:07 2009 for PowWow v1.0 by  doxygen 1.5.6