mutable
A Database System for Research and Fast Prototyping
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | Private Attributes | Friends
m::Timer::TimingProcess Struct Reference

A proxy class to record a Measurement with a Timer. More...

#include <Timer.hpp>

Collaboration diagram for m::Timer::TimingProcess:
[legend]

Public Member Functions

 ~TimingProcess ()
 
void stop ()
 

Private Member Functions

 TimingProcess (Timer &timer, std::size_t index)
 

Private Attributes

Timertimer_
 the Timer instance
 
std::size_t id_
 the ID of the Measurement
 

Friends

struct Timer
 

Detailed Description

A proxy class to record a Measurement with a Timer.

Definition at line 19 of file Timer.hpp.

Constructor & Destructor Documentation

◆ TimingProcess()

m::Timer::TimingProcess::TimingProcess ( Timer timer,
std::size_t  index 
)
inlineprivate

Definition at line 27 of file Timer.hpp.

◆ ~TimingProcess()

m::Timer::TimingProcess::~TimingProcess ( )
inline

Definition at line 30 of file Timer.hpp.

References m::Timer::get(), id_, m::Timer::stop(), and timer_.

Member Function Documentation

◆ stop()

void m::Timer::TimingProcess::stop ( )
inline

Definition at line 36 of file Timer.hpp.

References id_, m::Timer::stop(), and timer_.

Friends And Related Function Documentation

◆ Timer

friend struct Timer
friend

Definition at line 21 of file Timer.hpp.

Field Documentation

◆ id_

std::size_t m::Timer::TimingProcess::id_
private

the ID of the Measurement

Definition at line 25 of file Timer.hpp.

Referenced by stop(), and ~TimingProcess().

◆ timer_

Timer& m::Timer::TimingProcess::timer_
private

the Timer instance

Definition at line 24 of file Timer.hpp.

Referenced by stop(), and ~TimingProcess().


The documentation for this struct was generated from the following file: