Parasol Planning Library (PPL)
MethodTimer Class Referencefinal

#include <MetricUtils.h>

Public Member Functions

Construction
 MethodTimer (StatClass *const _stats, const std::string &_label)
 
 ~MethodTimer ()
 Destruction stops the named clock. More...
 

Detailed Description

A timer object for functions that starts a clock on construction and stops it on destruction.

Constructor & Destructor Documentation

◆ MethodTimer()

MethodTimer::MethodTimer ( StatClass *const  _stats,
const std::string &  _label 
)

Construct a method timer, which starts the named clock.

Parameters
_statsThe stat class which owns the clock.
_labelThe clock label.

◆ ~MethodTimer()

MethodTimer::~MethodTimer ( )

Destruction stops the named clock.


The documentation for this class was generated from the following files: