kspaceFirstOrder3D-OMP
1.2
The C++ implementation of the k-wave toolbox for the time-domain simulation of acoustic wave fields in 3D
|
Class measuring elapsed time. More...
#include <TimeMeasure.h>
Public Member Functions | |
TimeMeasure () | |
Default constructor. | |
virtual | ~TimeMeasure () |
Destructor. | |
TimeMeasure (const TimeMeasure &src) | |
Copy constructor. More... | |
TimeMeasure & | operator= (const TimeMeasure &src) |
operator= More... | |
void | start () |
Take start timestamp. | |
void | stop () |
Take stop timestamp. | |
double | getElapsedTime () const |
Get elapsed time. More... | |
double | getElapsedTimeOverAllLegs () const |
Get cumulated elapsed time over all simulation legs. More... | |
double | getElapsedTimeOverPreviousLegs () const |
Get time spent in previous legs. More... | |
void | SetElapsedTimeOverPreviousLegs (const double elapsedTime) |
Set elapsed time in previous legs of the simulation. More... | |
Private Attributes | |
double | mStartTime |
Start timestamp of the interval. | |
double | mStopTime |
Stop timestamp of the interval. | |
double | mElapsedTimeOverPreviousLegs |
Elapsed time in previous simulation legs. | |
Class measuring elapsed time, even over multiple simulation legs.
Definition at line 48 of file TimeMeasure.h.
|
inline |
Copy constructor.
[in] | src | - The other class to copy from |
Definition at line 67 of file TimeMeasure.h.
|
inline |
Get elapsed time.
Definition at line 119 of file TimeMeasure.h.
|
inline |
Get cumulated elapsed time over all simulation legs.
Definition at line 129 of file TimeMeasure.h.
|
inline |
Get time spent in previous legs.
Definition at line 139 of file TimeMeasure.h.
|
inline |
|
inline |
Set elapsed time in previous legs of the simulation.
[in] | elapsedTime | - Elapsed time. |
Definition at line 149 of file TimeMeasure.h.