CPoorMansTimingAndProfiling  1.3.6
Instrument C apps simply to profile selected code paths.
 All Data Structures Functions Typedefs Pages
"C++ API"

Data Structures

class  StopWatch
 

Macros

#define CREATE_STOP_WATCH(name)   (new StopWatch(name, __FILE__, __LINE__))
 
#define DECLARE_STOP_WATCH(variable, name)   StopWatch variable(name, __FILE__, __LINE__)
 

Detailed Description

Macro Definition Documentation

StopWatch * CREATE_STOP_WATCH (   name)    (new StopWatch(name, __FILE__, __LINE__))

A macro to create a simple stop watch . Use this macro instead of explicitly calling the StopWatch constructor.

A unique name should be used. If it is NULL or "" then a name is synthesized using the source file name and the line number where the macro is invoked.

Parameters
nameof the stop watch - copied for internal use.
Returns
the newly instantiated StopWatch
#define DECLARE_STOP_WATCH (   variable,
  name 
)    StopWatch variable(name, __FILE__, __LINE__)

A macro to create a simple stop watch . Use this macro instead of explicitly calling the StopWatch constructor.

A unique name should be used. If it is NULL or "" then a name is synthesized using the source file name and the line number where the macro is invoked.

Parameters
variableis the variable that gets the instance of the stop watch
nameof the stop watch - copied for internal use.
Returns
the newly instantiated StopWatch