GeNN
3.3.0
GPU enhanced Neuronal Networks (GeNN)
|
Helper class for timing sections of host code in a cross-plarform manner. More...
#include <hr_time.h>
Public Member Functions | |
CStopWatch () | |
void | startTimer () |
This method starts the timer. More... | |
void | stopTimer () |
This method stops the timer. More... | |
double | getElapsedTime () |
This method returns the time elapsed between start and stop of the timer in seconds. More... | |
Helper class for timing sections of host code in a cross-plarform manner.
Uses performance counters on windows and microsecond time on Unix
|
inline |
double CStopWatch::getElapsedTime | ( | ) |
This method returns the time elapsed between start and stop of the timer in seconds.
void CStopWatch::startTimer | ( | ) |
This method starts the timer.
void CStopWatch::stopTimer | ( | ) |
This method stops the timer.