GeNN  3.3.0
GPU enhanced Neuronal Networks (GeNN)
CStopWatch Class Reference

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...
 

Detailed Description

Helper class for timing sections of host code in a cross-plarform manner.

Uses performance counters on windows and microsecond time on Unix

Constructor & Destructor Documentation

◆ CStopWatch()

CStopWatch::CStopWatch ( )
inline

Member Function Documentation

◆ getElapsedTime()

double CStopWatch::getElapsedTime ( )

This method returns the time elapsed between start and stop of the timer in seconds.

◆ startTimer()

void CStopWatch::startTimer ( )

This method starts the timer.

◆ stopTimer()

void CStopWatch::stopTimer ( )

This method stops the timer.


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