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

Function Documentation

template<typename T>
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.