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

timer.c File Reference

#include <cutk/timer.h>
#include <sys/time.h>

Functions

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

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