48 using rep = duration::rep;
58 using time_point = std::chrono::time_point<CPUClock, duration>;
138 Timer(
const MPI_Comm mpi_communicator,
const bool sync_lap_times =
false);
147 get_last_lap_wall_time_data()
const;
156 get_accumulated_wall_time_data()
const;
162 template <
typename StreamType>
164 print_last_lap_wall_time_data(StreamType &stream)
const;
170 template <
typename StreamType>
172 print_accumulated_wall_time_data(StreamType &stream)
const;
218 last_wall_time()
const;
236 last_cpu_time()
const;
250 template <
class clock_type_>
659 cpu_and_wall_times_grouped
673 const OutputFrequency output_frequency,
674 const OutputType output_type);
687 const OutputFrequency output_frequency,
688 const OutputType output_type);
714 std::ostream &stream,
715 const OutputFrequency output_frequency,
716 const OutputType output_type);
743 const OutputFrequency output_frequency,
744 const OutputType output_type);
757 enter_subsection(
const std::string §ion_name);
764 leave_subsection(
const std::string §ion_name =
"");
769 std::map<std::string, double>
770 get_summary_data(
const OutputData kind)
const;
777 print_summary()
const;
797 print_wall_time_statistics(
const MPI_Comm mpi_comm,
798 const double print_quantile = 0.)
const;
907 return last_lap_wall_time_data;
915 return accumulated_wall_time_data;
920template <
typename StreamType>
925 stream << statistic.
max <<
" wall,"
926 <<
" max @" << statistic.
max_index <<
", min=" << statistic.
min <<
" @"
927 << statistic.
min_index <<
", avg=" << statistic.
avg << std::endl;
932template <
typename StreamType>
937 stream << statistic.
max <<
" wall,"
938 <<
" max @" << statistic.
max_index <<
", min=" << statistic.
min <<
" @"
939 << statistic.
min_index <<
", avg=" << statistic.
avg << std::endl;
945 const std::string §ion_name_)
947 , section_name(section_name_)
962 timer.leave_subsection(section_name);
const std::string section_name
Scope(::TimerOutput &timer_, const std::string §ion_name)
MPI_Comm mpi_communicator
OutputFrequency output_frequency
std::map< std::string, Section > sections
std::list< std::string > active_sections
ConditionalOStream out_stream
void enter_subsection(const std::string §ion_name)
Utilities::MPI::MinMaxAvg accumulated_wall_time_data
MPI_Comm mpi_communicator
ClockMeasurements< wall_clock_type > wall_times
void print_accumulated_wall_time_data(StreamType &stream) const
ClockMeasurements< cpu_clock_type > cpu_times
const Utilities::MPI::MinMaxAvg & get_accumulated_wall_time_data() const
Utilities::MPI::MinMaxAvg last_lap_wall_time_data
const Utilities::MPI::MinMaxAvg & get_last_lap_wall_time_data() const
std::chrono::steady_clock wall_clock_type
void print_last_lap_wall_time_data(StreamType &stream) const
#define DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_CLOSE
std::chrono::microseconds duration
static time_point now() noexcept
static const bool is_steady
std::chrono::time_point< CPUClock, duration > time_point
typename clock_type::time_point time_point_type
time_point_type current_lap_start_time
typename clock_type::duration duration_type
duration_type accumulated_time
duration_type last_lap_time