G+Smo
24.08.0
Geometry + Simulation Modules
|
A Stopwatch object can be used to measure execution time of code, algorithms, etc.
This GenericStopwatch can be initialized in two time-taking modes, CPU time and real time (wall time).
Clock | clock (eg. system specific) to use for measuring the time. |
Public Member Functions | |
double | elapsed () const |
Returns the last recorded elapsed time. | |
gsGenericStopwatch () | |
Declares a stop-watch. | |
void | restart () |
Start taking the time. | |
double | stop () |
Return elapsed time in seconds. | |