![]() |
Menge
Modular Pedestrian Simulation Framework for Research and Development
|
Lap timer. A timer which supports "laps" i.e., single calls which measure from the last "tick" to this tick. More...
#include <Profiler.h>
Public Member Functions | |
| LapTimer () | |
| Default constructor. | |
| float | lap (float scale=1.f) |
| Reports the time elapsed from the previous call to lap() or start() to this call. The clock is still "running" and the next lap starts. More... | |
| float | average (float scale=1.f) |
| Reports the average lap time across all recorded laps. More... | |
| int | laps () const |
| Reports the number of calls to laps. | |
Public Member Functions inherited from Menge::Vis::Timer | |
| 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 | |
| double | _total |
| The total accrued time of timed intervals (in seconds). | |
| int | _lapCount |
| The total number of calls to lap() | |
Protected Attributes inherited from Menge::Vis::Timer | |
| struct timespec | _start |
| The time (in clock cycles) at which the timer was started. | |
Lap timer. A timer which supports "laps" i.e., single calls which measure from the last "tick" to this tick.
| float Menge::Vis::LapTimer::average | ( | float | scale = 1.f | ) |
Reports the average lap time across all recorded laps.
| scale | The scale of the units to report the elapsed time in. e.g., 1.0 –> seconds, 0.001 –>, 1e-6 –> microseconds. |
| float Menge::Vis::LapTimer::lap | ( | float | scale = 1.f | ) |
Reports the time elapsed from the previous call to lap() or start() to this call. The clock is still "running" and the next lap starts.
| scale | The scale of the units to report the elapsed time in. e.g., 1.0 –> seconds, 0.001 –>, 1e-6 –> microseconds. |
1.8.8