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

timer.h File Reference

#include <stdio.h>
#include "tsc.h"

Go to the source code of this file.

Defines

#define TIMER_VARS(func)
#define TIMER_P(func)
#define TIMER_Q(func)
#define TIMER_REPORT(func)
#define TIMER_COUNT()
#define TIMER_START()
#define TIMER_STOP()

Functions

void Timer_Start (void)
void Timer_Stop (void)

Variables

FILE * timerFP
int timerCount
double time_Master


Define Documentation

 
#define TIMER_COUNT  ) 
 

Definition at line 67 of file timer.h.

Referenced by BlitData_DePalettize(), Fire_Animate(), Particles_Animate(), and Plasma_Animate().

#define TIMER_P func   ) 
 

Definition at line 63 of file timer.h.

#define TIMER_Q func   ) 
 

Definition at line 64 of file timer.h.

#define TIMER_REPORT func   ) 
 

Definition at line 65 of file timer.h.

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

 
#define TIMER_START  ) 
 

Definition at line 69 of file timer.h.

 
#define TIMER_STOP  ) 
 

Definition at line 70 of file timer.h.

#define TIMER_VARS func   ) 
 

Definition at line 62 of file timer.h.

Referenced by BlitData_DePalettize().


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
 

Definition at line 37 of file timer.h.

Referenced by Timer_Stop().

int timerCount
 

Definition at line 36 of file timer.h.

FILE* timerFP
 

Definition at line 35 of file timer.h.

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


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