A scoped timer for a plugin operation. More...
#include <context.h>
Public Member Functions | |
| Timer_event_handler (Context &ctx, const std::string &plugin_name) | |
| Triggers the start event of the timer. | |
| ~Timer_event_handler () | |
| Triggers the stop event of the timer. | |
A scoped timer for a plugin operation.
Triggers the <plugin_name>_start_timer event on construction and the matching <plugin_name>_stop_timer event on destruction, so that the timer plugin can measure the duration of the enclosing scope.
| PDI::Timer_event_handler::Timer_event_handler | ( | Context & | ctx, |
| const std::string & | plugin_name ) |
Triggers the start event of the timer.
| [in] | ctx | the context in which to trigger the events |
| [in] | plugin_name | the name of the plugin the events are named after |
| PDI::Timer_event_handler::~Timer_event_handler | ( | ) |
Triggers the stop event of the timer.