34 typename =
typename std::enable_if<std::is_arithmetic<T>::value, T>::type>
37 return (1000 * (static_cast<double>(a) - b)) / timestampCount;
42 template <
typename T,
typename U>
45 throw MonitoringException(
"DerivedMetrics/Visitor",
"Cannot operate on different or non-numeric types");
Subtracts boost variants in order to calculate rate.
Definition: VariantVisitorRate.h:17
double operator()(const T &a, const T &b) const
Definition: VariantVisitorRate.h:35
VariantVisitorRate(int count)
Definition: VariantVisitorRate.h:26
Internal monitoring exception.
Definition: MonitoringException.h:29
double operator()(const T &, const U &) const
Definition: VariantVisitorRate.h:43