Main Page | Alphabetical List | Compound List | File List | Compound Members | File Members

timer.c File Reference

#include "timer.h"

Go to the source code of this file.

Functions

void Timer_Start (void)
void Timer_Stop (void)

Variables

FILE * timerFP = stdout
int timerCount = 0
double time_Master = 0.0
tsc_type tsc_Master


Function Documentation

void Timer_Start void   ) 
 

Definition at line 32 of file timer.c.

References readTSC(), and tsc_Master.

Referenced by BlitData_DePalettize(), Fire_Create(), Particles_Create(), and Plasma_Create().

00033 {
00034 readTSC(tsc_Master);
00035 }

void Timer_Stop void   ) 
 

Definition at line 36 of file timer.c.

References diffTSC(), readTSC(), time_Master, tsc_Master, and tsc_type.

Referenced by BlitData_DePalettize(), Fire_Destroy(), Particles_Destroy(), and Plasma_Destroy().

00037 {
00038 tsc_type tsc_Master2;
00039 readTSC(tsc_Master2);
00040 time_Master += diffTSC(tsc_Master,tsc_Master2);
00041 }


Variable Documentation

double time_Master = 0.0
 

Definition at line 29 of file timer.c.

Referenced by Timer_Stop().

int timerCount = 0
 

Definition at line 27 of file timer.c.

FILE* timerFP = stdout
 

Definition at line 25 of file timer.c.

Referenced by BlitData_DePalettize(), Fire_Create(), Fire_Destroy(), Particles_Create(), Particles_Destroy(), Plasma_Create(), and Plasma_Destroy().

tsc_type tsc_Master [static]
 

Definition at line 30 of file timer.c.

Referenced by Timer_Start(), and Timer_Stop().


Generated on Tue Sep 30 12:38:14 2003 for GTestAndEngine by doxygen 1.3.2