Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
ROOT::Experimental::Detail::RNTupleTickCounter< BaseCounterT > Class Template Reference

template<typename BaseCounterT>
class ROOT::Experimental::Detail::RNTupleTickCounter< BaseCounterT >

A counter for CPU ticks.

Whether this counter is thread-safe depends on BaseCounterT, see RNTuplePlainCounter and RNTupleAtomicCounter.

When printing, the value is converted from ticks to nanoseconds.

Definition at line 213 of file RNTupleMetrics.hxx.

Public Member Functions

 RNTupleTickCounter (const std::string &name, const std::string &unit, const std::string &desc)
 
std::int64_t GetValueAsInt () const final
 
std::string GetValueAsString () const final
 

#include <ROOT/RNTupleMetrics.hxx>

Inheritance diagram for ROOT::Experimental::Detail::RNTupleTickCounter< BaseCounterT >:
[legend]

Constructor & Destructor Documentation

◆ RNTupleTickCounter()

template<typename BaseCounterT >
ROOT::Experimental::Detail::RNTupleTickCounter< BaseCounterT >::RNTupleTickCounter ( const std::string & name,
const std::string & unit,
const std::string & desc )
inline

Definition at line 215 of file RNTupleMetrics.hxx.

Member Function Documentation

◆ GetValueAsInt()

template<typename BaseCounterT >
std::int64_t ROOT::Experimental::Detail::RNTupleTickCounter< BaseCounterT >::GetValueAsInt ( ) const
inlinefinal

Definition at line 221 of file RNTupleMetrics.hxx.

◆ GetValueAsString()

template<typename BaseCounterT >
std::string ROOT::Experimental::Detail::RNTupleTickCounter< BaseCounterT >::GetValueAsString ( ) const
inlinefinal

Definition at line 226 of file RNTupleMetrics.hxx.

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