Mantid
Loading...
Searching...
No Matches
Classes | Public Member Functions | Private Attributes | List of all members
Mantid::Kernel::CodeBlockMultipleTimer Class Reference

#include <Timer.h>

Classes

class  TimeAccumulator
 

Public Member Functions

 CodeBlockMultipleTimer ()=delete
 
 CodeBlockMultipleTimer (TimeAccumulator &accumulator)
 Instantiate the object and start the timer.
 
 ~CodeBlockMultipleTimer ()
 Calculate the elapsed wall-clock time (seconds) and update the time accumulator.
 

Private Attributes

TimeAccumulatorm_accumulator
 
std::chrono::time_point< std::chrono::system_clock > m_start
 

Detailed Description

Definition at line 55 of file Timer.h.

Constructor & Destructor Documentation

◆ CodeBlockMultipleTimer() [1/2]

Mantid::Kernel::CodeBlockMultipleTimer::CodeBlockMultipleTimer ( )
delete

◆ CodeBlockMultipleTimer() [2/2]

Mantid::Kernel::CodeBlockMultipleTimer::CodeBlockMultipleTimer ( CodeBlockMultipleTimer::TimeAccumulator accumulator)

Instantiate the object and start the timer.

Parameters
accumulator:: a persistent object keeping track of the total elapsed wall-clock time

Definition at line 83 of file Timer.cpp.

◆ ~CodeBlockMultipleTimer()

Mantid::Kernel::CodeBlockMultipleTimer::~CodeBlockMultipleTimer ( )

Calculate the elapsed wall-clock time (seconds) and update the time accumulator.

Definition at line 88 of file Timer.cpp.

References Mantid::Kernel::CodeBlockMultipleTimer::TimeAccumulator::increment(), m_accumulator, and m_start.

Member Data Documentation

◆ m_accumulator

TimeAccumulator& Mantid::Kernel::CodeBlockMultipleTimer::m_accumulator
private

Definition at line 81 of file Timer.h.

Referenced by ~CodeBlockMultipleTimer().

◆ m_start

std::chrono::time_point<std::chrono::system_clock> Mantid::Kernel::CodeBlockMultipleTimer::m_start
private

Definition at line 82 of file Timer.h.

Referenced by ~CodeBlockMultipleTimer().


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