#include <Timer.h>
|
| double | getElapsed () const |
| | Return the total elapsed wall-clock time.
|
| |
| size_t | getNumberOfEntrances () const |
| | Return the number of times the code block was entered.
|
| |
| void | increment (const double time_sec) |
| | Increment the elapsed wall-clock time and number of times the code block was entered.
|
| |
| void | reset () |
| | Reset the elapsed wall-clock time and number of times the code block was entered.
|
| |
| | TimeAccumulator ()=delete |
| |
| | TimeAccumulator (const std::string &name) |
| | Instantiate the object.
|
| |
| std::string | toString () const |
| | Return the timing summary as a string.
|
| |
Definition at line 57 of file Timer.h.
◆ TimeAccumulator() [1/2]
| Mantid::Kernel::CodeBlockMultipleTimer::TimeAccumulator::TimeAccumulator |
( |
| ) |
|
|
delete |
◆ TimeAccumulator() [2/2]
| Mantid::Kernel::CodeBlockMultipleTimer::TimeAccumulator::TimeAccumulator |
( |
const std::string & |
name | ) |
|
Instantiate the object.
- Parameters
-
| name | :: custom name of the code block |
Definition at line 98 of file Timer.cpp.
◆ getElapsed()
| double Mantid::Kernel::CodeBlockMultipleTimer::TimeAccumulator::getElapsed |
( |
| ) |
const |
Return the total elapsed wall-clock time.
- Returns
- :: elapsed time in seconds
Definition at line 118 of file Timer.cpp.
◆ getNumberOfEntrances()
| size_t Mantid::Kernel::CodeBlockMultipleTimer::TimeAccumulator::getNumberOfEntrances |
( |
| ) |
const |
Return the number of times the code block was entered.
- Returns
- :: number of entrances
Definition at line 123 of file Timer.cpp.
◆ increment()
| void Mantid::Kernel::CodeBlockMultipleTimer::TimeAccumulator::increment |
( |
const double |
time_sec | ) |
|
◆ reset()
| void Mantid::Kernel::CodeBlockMultipleTimer::TimeAccumulator::reset |
( |
| ) |
|
Reset the elapsed wall-clock time and number of times the code block was entered.
Definition at line 102 of file Timer.cpp.
◆ toString()
| std::string Mantid::Kernel::CodeBlockMultipleTimer::TimeAccumulator::toString |
( |
| ) |
const |
◆ m_elapsed_sec
| double Mantid::Kernel::CodeBlockMultipleTimer::TimeAccumulator::m_elapsed_sec {0.0} |
|
private |
◆ m_name
| std::string Mantid::Kernel::CodeBlockMultipleTimer::TimeAccumulator::m_name |
|
private |
◆ m_number_of_entrances
| size_t Mantid::Kernel::CodeBlockMultipleTimer::TimeAccumulator::m_number_of_entrances {0} |
|
private |
The documentation for this class was generated from the following files: