SkePU(integratedwithStarPU)  0.8.1
 All Classes Namespaces Files Functions Enumerations Friends Macros Groups Pages
Public Member Functions | List of all members
skepu::TimerLinux_GTOD Class Reference

A class that can be used measure time on Linux systems. More...

#include <timer_linux.h>

Public Member Functions

void start ()
 
void stop ()
 
void reset ()
 
double getTime (int run=0)
 
double getTotalTime ()
 
double getAverageTime ()
 
double getResolutionUs ()
 
int getNumTimings ()
 

Detailed Description

A class that can be used measure time on Linux systems.

A timer class that uses the linux function gettimeofday() to measure time. The resolution can vary on different systems but is usually a few micro seconds. Can be checked with getResolutionUs(). Stores all times taken, between a start and a stop, as seperate runs and they exists until timer is reset. Both total time of all runs and average can be returned.

Member Function Documentation

double skepu::TimerLinux_GTOD::getAverageTime ( )
inline
Returns
Average time of all stored runs.
int skepu::TimerLinux_GTOD::getNumTimings ( )
inline
Returns
Number of runs stored in timer.
double skepu::TimerLinux_GTOD::getResolutionUs ( )
inline
Returns
The resolution of the timer in micro seconds.
double skepu::TimerLinux_GTOD::getTime ( int  run = 0)
inline
Parameters
runThe run to get timing of.
Returns
Time for a certain run.
double skepu::TimerLinux_GTOD::getTotalTime ( )
inline
Returns
Total time of all stored runs.
void skepu::TimerLinux_GTOD::reset ( )
inline

Clears all timings taken.

void skepu::TimerLinux_GTOD::start ( )
inline

Starts the timimg.

void skepu::TimerLinux_GTOD::stop ( )
inline

Stops the timimg and stores time in a vector.


The documentation for this class was generated from the following file: