C++ Common
Public Member Functions | List of all members
Timer Class Reference

A simple code exection timer. More...

#include <Timer.hpp>

Public Member Functions

void startTimer ()
 start the timer
 
void stopTimer ()
 stop the timer
 
void pauseTimer ()
 pause the timer
 
void resumeTimer ()
 resumse a paused timer
 
double totalPausedNano ()
 return current pause time
 
double seconds ()
 get time in seconds More...
 
double milliseconds ()
 get time in milliseconds More...
 
double microseconds ()
 get time in microseconds More...
 
double nanoseconds ()
 get time in nanoseconds More...
 

Detailed Description

A simple code exection timer.

exetimer allows one to start and stop timer, and get the time between start and stop calls in seconds, milliseconds, microseconds, or nanoseconds

Note
If the pause time is less than a full unit of your requested time the pause time is ignored. i.e if you paused a timer for 100 milliseconds and request your time in seconds the paused time will be ignored.
Author
Sean Grimes, spg63.nosp@m.@cs..nosp@m.drexe.nosp@m.l.ed.nosp@m.u
Date
11-30-15

Member Function Documentation

◆ microseconds()

double Timer::microseconds ( )
inline

get time in microseconds

returns the time between start_timer and stop_timer in microseconds

Returns
number of microseconds

◆ milliseconds()

double Timer::milliseconds ( )
inline

get time in milliseconds

returns the time between start_timer and stop_timer in milliseconds

Returns
number of milliseconds

◆ nanoseconds()

double Timer::nanoseconds ( )
inline

get time in nanoseconds

returns the time between start_timer and stop_timer in nanoseconds

Returns
number of nanoseconds

◆ seconds()

double Timer::seconds ( )
inline

get time in seconds

returns the time between start_timer and stop_timer in seconds

Returns
number of seconds

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