The C Utility Toolkit
Main Page | Data Structures | File List | Data Fields | Globals

timer.h File Reference

#include <sys/time.h>

Go to the source code of this file.

Data Structures

struct  Timer

Typedefs

typedef enum TimerMode TimerMode
typedef Timer Timer

Enumerations

enum  TimerMode { TIMER_TICKS, TIMER_SECS, TIMER_FPS }

Functions

void TimerStart (Timer *t)
double TimerElapsed (Timer *t, TimerMode mode)
double TimerEnd (Timer *t, TimerMode mode)


Typedef Documentation

typedef struct Timer Timer
 

Timer object

typedef enum TimerMode TimerMode
 

Timer mode


Enumeration Type Documentation

enum TimerMode
 

Timer mode

Enumeration values:
TIMER_TICKS 
TIMER_SECS 
TIMER_FPS 


Function Documentation

double TimerElapsed Timer t,
TimerMode  mode
 

Returns the elasped time

Parameters:
t Timer object; will be initialized
mode Mode to return time in (see TimerMode)

double TimerEnd Timer t,
TimerMode  mode
 

Stops the timer and returns the elapsed time

Parameters:
t Timer object
mode Mode to return time in (see TimerMode)

void TimerStart Timer t  ) 
 

Starts a timer counting

Parameters:
t Timer object; will be initialized


Generated on Wed Jan 12 13:13:42 2005 for CUTK by doxygen 1.3.7