Used to time from this objects creation to its destruction. More...
#include <logtools.h>
Public Member Functions | |
ScopedTimer (std::ostream &LogSink=std::cout, String ScopeToMeasure="UnknownScope", String ScopeFile=String(), Whole CurrentLine=0) | |
In a ScopedTimerBegin xml element this logs every parameter and the current timestamp. More... | |
~ScopedTimer () | |
Destructor, logs duration and current timestamp in ScopedTimerEnd xml element. | |
Used to time from this objects creation to its destruction.
Definition at line 75 of file logtools.h.
Mezzanine::Threading::ScopedTimer::ScopedTimer | ( | std::ostream & | LogSink = std::cout , |
String | ScopeToMeasure = "UnknownScope" , |
||
String | ScopeFile = String() , |
||
Whole | CurrentLine = 0 |
||
) |
In a ScopedTimerBegin xml element this logs every parameter and the current timestamp.
LogSink | The target to send log messages to. |
ScopeToMeasure | The name of the current function or a user provided name. |
ScopeFile | Defaults to an empty string, should be set to FILE or similar. |
CurrentLine | Defaults to 0, should be set to LINE or similar. |
Definition at line 53 of file logtools.cpp.