Template Function pal_statistics::customRegister(StatisticsRegistry&, const std::string&, const std::function<T()>&, RegistrationsRAII *, bool)

Function Documentation

template<typename T, typename = std::enable_if_t<std::is_convertible_v<T, double>>>
inline IdType pal_statistics::customRegister(StatisticsRegistry &registry, const std::string &name, const std::function<T()> &funct, RegistrationsRAII *bookkeeping = NULL, bool enabled = true)

Default implementation that accepts any function whose return value can be casted to a double.