Adds the C++ Timer
class for simple performance measurements.
#define NVX_TIMER |
( |
|
suffix, |
|
|
|
str |
|
) |
| static nvx::Timer timer_##suffix(true, str); timer_##suffix.tic() |
Creates a static instance of the nvx::Timer class and calls the nvx::Timer::tic() method.
- Note
- The created object dumps statistic at a deallocation stage.
- Parameters
-
[in] | suffix | Defines a suffix for the object name. |
[in] | str | Defines an internal name for the object. The internal name identifies the timer instance in the statistic dumping stage. |
Definition at line 83 of file nvx_timer.hpp.
#define NVX_TIMEROFF |
( |
|
suffix | ) |
(void)timer_##suffix.toc() |
Stops the timer with the suffix suffix
.
- Parameters
-
[in] | suffix | The timer's name suffix. |
Definition at line 91 of file nvx_timer.hpp.