time_logger(char const* const description, int thread_num, bool enabled = false) : description_(description), thread_num_(thread_num), enabled_(enabled && LTIM_ENABLED(warning)) { if (enabled_) times_.reserve(hpx_initial_times_size); }
double elapsed() { return enable_logging_ && LTIM_ENABLED(fatal) ? stats_.elapsed() : 0; }
// special interface for block_profiler_wrapper below void measure(double started) { if (enable_logging_ && LTIM_ENABLED(fatal)) stats_.add(started); }
value_logger(char const* const description, bool enabled = true) : description_(description), enabled_(enabled && LTIM_ENABLED(fatal)) { if (enabled_) values_.reserve(hpx_initial_times_size); }