MethodBenchmarker object.
More...
|
| | MethodBenchmarker (const String &methodName, int nLine) |
| | Constructor that starts the benchmark timer.
|
|
| ~MethodBenchmarker () |
| | Destructor that stops the benchmark timer and logs the elapsed time.
|
|
|
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.
|
◆ MethodBenchmarker()
| gem::MethodBenchmarker::MethodBenchmarker |
( |
const String & | methodName, |
|
|
int | nLine ) |
|
inline |
Constructor that starts the benchmark timer.
- Parameters
-
| [in] | methodName | The name of the method being benchmarked. |
| [in] | nLine | The line number where the benchmark is being created. |