GeNN  4.9.0
GPU enhanced Neuronal Networks (GeNN)
Timer Class Reference

A generic timer which can give the current elapsed time. More...

#include <timer.h>

Public Member Functions

 Timer (const std::string &message, const std::string &filename="")
 Create a new Timer with the specified name and optionally a filename to append time to. More...
 
 ~Timer ()
 Stop the timer and print current elapsed time to terminal. More...
 
double get () const
 Get the elapsed time since this object was created. More...
 

Detailed Description

A generic timer which can give the current elapsed time.

Constructor & Destructor Documentation

◆ Timer()

Timer::Timer ( const std::string &  message,
const std::string &  filename = "" 
)
inline

Create a new Timer with the specified name and optionally a filename to append time to.

◆ ~Timer()

Timer::~Timer ( )
inline

Stop the timer and print current elapsed time to terminal.

Member Function Documentation

◆ get()

double Timer::get ( ) const
inline

Get the elapsed time since this object was created.


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