Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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 239 of file RNTupleMetrics.hxx.

Public Member Functions

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

Private Types

using Clock_t = std::chrono::steady_clock
 

Private Attributes

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

#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 241 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 251 of file RNTupleMetrics.hxx.

◆ ~RNTupleTimer()

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

Definition at line 260 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 244 of file RNTupleMetrics.hxx.

◆ fCtrWallTime

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

Definition at line 243 of file RNTupleMetrics.hxx.

◆ fStartTicks

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

CPU time.

Definition at line 248 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 246 of file RNTupleMetrics.hxx.

  • tree/ntuple/v7/inc/ROOT/RNTupleMetrics.hxx