qb
2.0.0.0
C++17 Actor Framework
|
Utility for logging execution time of code blocks. More...
#include <timestamp.h>
Public Member Functions | |
LogTimer (std::string reason) | |
Constructs a timer with a descriptive reason. | |
Duration | elapsed () const |
Gets elapsed time without stopping timer. |
Utility for logging execution time of code blocks.
Creates a timer that logs the elapsed time when it goes out of scope. Useful for performance measurements and debugging.
|
inlineexplicit |
Constructs a timer with a descriptive reason.
reason | Description of what is being timed |
|
inline |
Gets elapsed time without stopping timer.