timer.h File Reference


Detailed Description

Timing module.

#include <oski/common.h>

Go to the source code of this file.

Defines

#define INC_OSKI_TIMER_H
 oski/timer.h included.
#define INVALID_TIMER   ((oski_timer_t)NULL)
 Invalid timer object.

Typedefs

typedef tagBebop_timerstruct_toski_timer_t
 Timer object.

Functions

oski_timer_t oski_CreateTimer (void)
 Allocate a new timer.
void oski_DestroyTimer (oski_timer_t timer)
 Free previously allocated timer.
void oski_RestartTimer (oski_timer_t timer)
 Start virtual stopwatch.
void oski_StopTimer (oski_timer_t timer)
 Stop virtual stopwatch.
const char * oski_GetTimerDesc (oski_timer_t timer)
 Get a short string description of the timer being used.
double oski_ReadElapsedTime (oski_timer_t timer)
 Check virtual stopwatch and return elapsed time, in seconds, since the last call to either oski_RestartTimer() or oski_StopTimer(), whichever happened most recently.
void oski_CalibrateTimer (oski_timer_t timer)
 Initialize timer.
double oski_GetTimerSecsPerTick (void)
 Get the current calibration factor.


Function Documentation

void oski_CalibrateTimer oski_timer_t  timer  ) 
 

Initialize timer.

An application should call this at least once during its start-up to cache calibration results.

double oski_ReadElapsedTime oski_timer_t  timer  ) 
 

Check virtual stopwatch and return elapsed time, in seconds, since the last call to either oski_RestartTimer() or oski_StopTimer(), whichever happened most recently.

Note:
If the caller has never restarted this timer, then the results are garbage.


Generated on Wed Sep 19 16:41:23 2007 for BeBOP Optimized Sparse Kernel Interface Library by  doxygen 1.4.6