Measure and trace elapsed time during lifetime of object.
#include <Workspace/Application/scopedelapsedtimelogger.h>
◆ ScopedElapsedTimeLogger()
- Parameters
-
text | The text to log along with the elapsed time. If this string contains "%1" then the time in seconds will be printed as that argument. |
outputTime | if set to false this object does nothing - this allows a variable to be used to enable and disable time tracing |
◆ ~ScopedElapsedTimeLogger()
◆ finishEarly()
double finishEarly |
( |
bool |
outputTime = true | ) |
|
- Returns
- Elapsed time in seconds
◆ hasFinishedEarly()
bool hasFinishedEarly |
( |
| ) |
const |