![]() |
VR-Forces 5.0.3 Developer's Guide
|
This is a simple wrapper around tbb::tick_count timing to be able to easily time a scope of code. Just create one of these on the stack and when it is destroyed it will print the message to the stream (both from the constructor) along with the amount of time the object was alive. Put them in lots of different places and comment them out, then you just have to uncomment one line to check the timing of a section.

Public Member Functions | |
| DtScopeTimer (const std::string &text, std::ostream &str=DtWarn) | |
| std::string & | text () |
| ~DtScopeTimer () | |
Private Attributes | |
| std::ostream & | myStream |
| std::string | myText |
| tbb::tick_count | myStart |
|
inline |
Constructor.
| text | Message to print when done. |
| str | Stream to print message to, defaults to DtWarn. |
|
inline |
|
inline |
|
private |
|
private |
|
private |