/* Header for timer.c and timer.o */ /* defines */ #define CNTR_MAX 65535 /* max value of 16bit counters */ /* structs */ /* values for timed section */ typedef struct { int time; /* root counter ticks 0-65535 */ int total; /* total tick count */ int hsync; /* number of hsyncs */ int percent; /* percentage of frame time used */ }S_TIME; /* prototypes */ void InitTimer(void); void StartTimer(void); int GetTimer(void); void StartTimer2(void); int GetTimer2(void);