A class that can be used measure time on Linux systems. More...
#include <timer_linux.h>
Public Member Functions | |
| void | start_record_multi () |
| void | stop_record_multi () |
| void | start () |
| void | stop () |
| void | reset () |
| double | getTime (int run=0) |
| double | getTotalTime () |
| double | getAverageTime () |
| double | getMaxTime () |
| double | getMinTime () |
| 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 |
References skepu::max().

|
inline |
References skepu::min().

|
inline |
|
inline |
|
inline |
| run | The run to get timing of. |
|
inline |
|
inline |
Clears all timings taken.
|
inline |
Starts the timimg.
|
inline |
Start timing, used when measuring multi-GPU executions.
|
inline |
Stops the timimg and stores time in a vector.
|
inline |
Stop timing, used when measuring multi-GPU executions.
1.8.5