MercuryDPM
Alpha
|
Allows for timing the algorithms; accurate up to 0.01 sec. More...
#include <MercuryTime.h>
Public Member Functions | |
void | tic () |
This is like a start button of a stopwatch. Assigns the variable start with the current number of clock ticks. More... | |
Mdouble | toc () |
This is like a stop button of a stopwatch. Assigns the variable finish to the current value of ticks returned by clock(). More... | |
Private Attributes | |
clock_t | start |
Stores the number of clock ticks, called by Time::tic(). More... | |
clock_t | finish |
Stores the number of clock ticks, called by Time::toc(). More... | |
Allows for timing the algorithms; accurate up to 0.01 sec.
Calculates the amount of computational time used, in seconds. Works on the same concept of stopwatch, where one presses start and stops when needed. The difference returns the total time used up.
Definition at line 40 of file MercuryTime.h.
|
inline |
This is like a start button of a stopwatch. Assigns the variable start with the current number of clock ticks.
Definition at line 48 of file MercuryTime.h.
References start.
|
inline |
This is like a stop button of a stopwatch. Assigns the variable finish to the current value of ticks returned by clock().
Definition at line 58 of file MercuryTime.h.
|
private |
Stores the number of clock ticks, called by Time::toc().
Definition at line 73 of file MercuryTime.h.
Referenced by toc().
|
private |
Stores the number of clock ticks, called by Time::tic().
Definition at line 68 of file MercuryTime.h.