Signal/Geometry Processing Library (SPL)  1.1.24
SPL::Timer Class Reference

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...
 

Detailed Description

A class for making timing measurements.

Member Function Documentation

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.


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