Menge
Modular Pedestrian Simulation Framework for Research and Development
|
Basic timer. More...
#include <Profiler.h>
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. | |
Basic timer.
float Menge::Vis::Timer::elapsed | ( | float | scale | ) |
Reports the time elapsed between this call and the last start.
scale | The scale of the units to report the elapsed time in. e.g., 1.0 –> seconds, 0.001 –>, 1e-6 –> microseconds. |