VisionWorks Toolkit Reference

December 18, 2015 | 1.2 Release

 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages

Detailed Description

Adds the C++ Timer class for simple performance measurements.

Data Structures

class  nvx::Timer
 Timer class interface. More...
 

Macros

#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. More...
 
#define NVX_TIMEROFF(suffix)   (void)timer_##suffix.toc()
 Stops the timer with the suffix suffix. More...
 

Macro Definition Documentation

#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]suffixDefines a suffix for the object name.
[in]strDefines 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]suffixThe timer's name suffix.

Definition at line 91 of file nvx_timer.hpp.