Logo ROOT   6.21/01
Reference Guide
ROOT::Experimental::Detail::RNTupleTimer< WallTimeT, CpuTimeT > Class Template Reference

template<typename WallTimeT, typename CpuTimeT>
class ROOT::Experimental::Detail::RNTupleTimer< WallTimeT, CpuTimeT >


Record wall time and CPU time between construction and destruction

Uses RAII as a stop watch. Only the wall time counter is used to determine whether the timer is active.

Definition at line 190 of file RNTupleMetrics.hxx.

Public Member Functions

 RNTupleTimer (WallTimeT &ctrWallTime, CpuTimeT &ctrCpuTicks)
 
 RNTupleTimer (const RNTupleTimer &other)=delete
 
 ~RNTupleTimer ()
 
RNTupleTimeroperator= (const RNTupleTimer &other)=delete
 

Private Types

using Clock_t = std::chrono::steady_clock
 

Private Attributes

CpuTimeT & fCtrCpuTicks
 
WallTimeT & fCtrWallTime
 
clock_t fStartTicks
 CPU time. More...
 
Clock_t::time_point fStartTime
 Wall clock time. More...
 

#include <ROOT/RNTupleMetrics.hxx>

Member Typedef Documentation

◆ Clock_t

template<typename WallTimeT , typename CpuTimeT >
using ROOT::Experimental::Detail::RNTupleTimer< WallTimeT, CpuTimeT >::Clock_t = std::chrono::steady_clock
private

Definition at line 192 of file RNTupleMetrics.hxx.

Constructor & Destructor Documentation

◆ RNTupleTimer() [1/2]

template<typename WallTimeT , typename CpuTimeT >
ROOT::Experimental::Detail::RNTupleTimer< WallTimeT, CpuTimeT >::RNTupleTimer ( WallTimeT &  ctrWallTime,
CpuTimeT &  ctrCpuTicks 
)
inline

Definition at line 202 of file RNTupleMetrics.hxx.

◆ ~RNTupleTimer()

template<typename WallTimeT , typename CpuTimeT >
ROOT::Experimental::Detail::RNTupleTimer< WallTimeT, CpuTimeT >::~RNTupleTimer ( )
inline

Definition at line 211 of file RNTupleMetrics.hxx.

◆ RNTupleTimer() [2/2]

template<typename WallTimeT , typename CpuTimeT >
ROOT::Experimental::Detail::RNTupleTimer< WallTimeT, CpuTimeT >::RNTupleTimer ( const RNTupleTimer< WallTimeT, CpuTimeT > &  other)
delete

Member Function Documentation

◆ operator=()

template<typename WallTimeT , typename CpuTimeT >
RNTupleTimer& ROOT::Experimental::Detail::RNTupleTimer< WallTimeT, CpuTimeT >::operator= ( const RNTupleTimer< WallTimeT, CpuTimeT > &  other)
delete

Member Data Documentation

◆ fCtrCpuTicks

template<typename WallTimeT , typename CpuTimeT >
CpuTimeT& ROOT::Experimental::Detail::RNTupleTimer< WallTimeT, CpuTimeT >::fCtrCpuTicks
private

Definition at line 195 of file RNTupleMetrics.hxx.

◆ fCtrWallTime

template<typename WallTimeT , typename CpuTimeT >
WallTimeT& ROOT::Experimental::Detail::RNTupleTimer< WallTimeT, CpuTimeT >::fCtrWallTime
private

Definition at line 194 of file RNTupleMetrics.hxx.

◆ fStartTicks

template<typename WallTimeT , typename CpuTimeT >
clock_t ROOT::Experimental::Detail::RNTupleTimer< WallTimeT, CpuTimeT >::fStartTicks
private

CPU time.

Definition at line 199 of file RNTupleMetrics.hxx.

◆ fStartTime

template<typename WallTimeT , typename CpuTimeT >
Clock_t::time_point ROOT::Experimental::Detail::RNTupleTimer< WallTimeT, CpuTimeT >::fStartTime
private

Wall clock time.

Definition at line 197 of file RNTupleMetrics.hxx.


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