Apache Mesos
Classes | Public Member Functions | Public Attributes | 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

 data (new Data())
 
Future< double > value () const
 
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
 

Public Attributes

 __pad0__: Metric(name + "_" + T::units()
 
 window
 

Additional Inherited Members

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

Member Function Documentation

template<class T>
process::metrics::Timer< T >::data ( new   Data())
inline
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
inlinevirtual

Member Data Documentation

template<class T>
process::metrics::Timer< T >::__pad0__
template<class T>
process::metrics::Timer< T >::window

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