SkePU(integratedwithStarPU)
0.8.1
|
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 () |
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.
|
inline |
|
inline |
|
inline |
|
inline |
run | The run to get timing of. |
|
inline |
|
inline |
Clears all timings taken.
|
inline |
Starts the timimg.
|
inline |
Stops the timimg and stores time in a vector.