59 ScopeName(ScopeToMeasure),
64 LogTarget <<
"<ScopedTimerBegin "
65 "TimeStamp=\"" << StartTime <<
"\" "
66 "Scope=\"" << ScopeName <<
"\" "
67 "FileName=\"" << FileName <<
"\" "
68 "Line=\"" << CurrentLine <<
"\" "
75 LogTarget <<
"<ScopedTimerEnd "
76 "TimeStamp=\"" << Now <<
"\" "
77 "Duration=\"" << (Now-StartTime) <<
"\" "
MaxInt GetTimeStamp()
Get a timestamp, in microseconds. This will generally be some multiple of the GetTimeStampResolution ...
MaxInt Now()
Get a timestamp, in microseconds. This will generally be some multiple of the GetTimeStampResolution ...
~ScopedTimer()
Destructor, logs duration and current timestamp in ScopedTimerEnd xml element.
long long MaxInt
A large integer type suitable for compile time math and long term microsecond time keeping...
The bulk of the engine components go in this namspace.
unsigned long Whole
Whole is an unsigned integer, it will be at least 32bits in size.
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.
std::string String
A datatype used to a series of characters.