The Gaudi Framework  v33r0 (d5ea422b)
std::Gaudi::Accumulators Namespace Reference

Functions

template<class Rep , class Period >
auto sqrt (std::chrono::duration< Rep, Period > d)
 sqrt for std::chrono::duration More...
 
template<class Rep1 , class Rep2 , class Period >
auto operator * (const std::chrono::duration< Rep1, Period > &lhs, const std::chrono::duration< Rep2, Period > &rhs)
 Multiplication of two std::chrono::duration objects with same Period. More...
 

Function Documentation

◆ operator *()

template<class Rep1 , class Rep2 , class Period >
auto std::Gaudi::Accumulators::operator * ( const std::chrono::duration< Rep1, Period > &  lhs,
const std::chrono::duration< Rep2, Period > &  rhs 
)

Multiplication of two std::chrono::duration objects with same Period.

Definition at line 40 of file Counters.h.

40  {
41  return std::chrono::duration<std::common_type_t<Rep1, Rep2>, Period>( lhs.count() * rhs.count() );
42  }

◆ sqrt()

template<class Rep , class Period >
auto std::Gaudi::Accumulators::sqrt ( std::chrono::duration< Rep, Period >  d)

sqrt for std::chrono::duration

Definition at line 34 of file Counters.h.

34  {
35  return std::chrono::duration<Rep, Period>( static_cast<Rep>( std::round( std::sqrt( d.count() ) ) ) );
36  }
T sqrt(T... args)
T round(T... args)