|
Gin
|
A simple RAII-based time profiler for measuring execution duration. More...
#include <gin_util.h>
Public Member Functions | |
| TimeProfiler (const juce::String &name_) | |
| Creates a TimeProfiler with the specified name. | |
| ~TimeProfiler () | |
| Destructor that outputs the elapsed time to the debug console. | |
A simple RAII-based time profiler for measuring execution duration.
Create an instance at the start of a scope to measure how long that scope takes to execute. When the instance is destroyed, it prints the elapsed time to the debug console.
Example usage:
| TimeProfiler::TimeProfiler | ( | const juce::String & | name_ | ) |
Creates a TimeProfiler with the specified name.
| name_ | The name to display in the debug output |
| TimeProfiler::~TimeProfiler | ( | ) |
Destructor that outputs the elapsed time to the debug console.