Maps SDK for C++ 1.0.0
Loading...
Searching...
No Matches
gem::MethodBenchmarker Class Reference

MethodBenchmarker object. More...

Collaboration diagram for gem::MethodBenchmarker:

Public Member Functions

 MethodBenchmarker (const String &methodName, int nLine)
 Constructor that starts the benchmark timer.
 ~MethodBenchmarker ()
 Destructor that stops the benchmark timer and logs the elapsed time.

Protected Attributes

Chronometer m_chron
 Chronometer object to measure elapsed time.
String m_methodName
 The name of the method being benchmarked.
int m_line
 The line number where the benchmark is being created.

Detailed Description

Constructor & Destructor Documentation

◆ MethodBenchmarker()

gem::MethodBenchmarker::MethodBenchmarker ( const String & methodName,
int nLine )
inline

Constructor that starts the benchmark timer.

Parameters
[in]methodNameThe name of the method being benchmarked.
[in]nLineThe line number where the benchmark is being created.