A class for making timing measurements. More...
#include <Timer.hpp>
Public Member Functions | |
void | start () |
Start the timer. More... | |
void | stop () |
Stop the timer. More... | |
double | get () const |
Get the timer value. More... | |
A class for making timing measurements.
double SPL::Timer::get | ( | ) | const |
Get the timer value.
Effects: Query the elapsed time measured by the timer.
Returns: The elapsed time in seconds is returned. The resolution of the timer depends on the particular platform (e.g., operating system, hardware, etc.). For most mainstream platforms, the resolution of the timer is typically microseconds.
void SPL::Timer::start | ( | ) |
Start the timer.
Effects: Starts the timer. The timer should not already be running.
void SPL::Timer::stop | ( | ) |
Stop the timer.
Effects: Stops the timer. The timer should already be running.