Menge
Modular Pedestrian Simulation Framework for Research and Development
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Attributes | List of all members
Menge::Vis::Timer Class Reference

Basic timer. More...

#include <Profiler.h>

Inheritance diagram for Menge::Vis::Timer:
Menge::Vis::LapTimer Menge::Vis::SampleTimer

Public Member Functions

 Timer ()
 Default constructor.
 
void start ()
 Starts the timer running.
 
float elapsed (float scale)
 Reports the time elapsed between this call and the last start. More...
 

Protected Attributes

struct timespec _start
 The time (in clock cycles) at which the timer was started.
 

Detailed Description

Basic timer.

Member Function Documentation

float Menge::Vis::Timer::elapsed ( float  scale)

Reports the time elapsed between this call and the last start.

Parameters
scaleThe scale of the units to report the elapsed time in. e.g., 1.0 –> seconds, 0.001 –>, 1e-6 –> microseconds.
Returns
The elapsed time of the timer's last call (scaled by the given amount).

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