Apache Mesos
Classes | Public Member Functions | List of all members
process::metrics::Timer< T > Class Template Reference

#include <timer.hpp>

Inheritance diagram for process::metrics::Timer< T >:
process::metrics::Metric

Public Member Functions

 Timer (const std::string &name, const Option< Duration > &window=None())
 
Future< double > value () const override
 
void start ()
 
stop ()
 
template<typename U >
Future< U > time (const Future< U > &future)
 
- Public Member Functions inherited from process::metrics::Metric
virtual ~Metric ()
 
const std::string & name () const
 
Option< Statistics< double > > statistics () const
 

Additional Inherited Members

- Protected Member Functions inherited from process::metrics::Metric
 Metric (const std::string &name, const Option< Duration > &window)
 
void push (double value)
 

Constructor & Destructor Documentation

template<class T>
process::metrics::Timer< T >::Timer ( const std::string &  name,
const Option< Duration > &  window = None() 
)
inline

Member Function Documentation

template<class T>
void process::metrics::Timer< T >::start ( )
inline
template<class T>
T process::metrics::Timer< T >::stop ( )
inline
template<class T>
template<typename U >
Future<U> process::metrics::Timer< T >::time ( const Future< U > &  future)
inline
template<class T>
Future<double> process::metrics::Timer< T >::value ( ) const
inlineoverridevirtual

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