49 using rep = duration::rep;
59 using time_point = std::chrono::time_point<CPUClock, duration>;
139 Timer(
const MPI_Comm mpi_communicator,
const bool sync_lap_times =
false);
148 get_last_lap_wall_time_data()
const;
157 get_accumulated_wall_time_data()
const;
163 template <
class StreamType>
165 print_last_lap_wall_time_data(StreamType &stream)
const;
171 template <
class StreamType>
173 print_accumulated_wall_time_data(StreamType &stream)
const;
219 last_wall_time()
const;
237 last_cpu_time()
const;
251 template <
class clock_type_>
660 cpu_and_wall_times_grouped
674 const OutputFrequency output_frequency,
675 const OutputType output_type);
688 const OutputFrequency output_frequency,
689 const OutputType output_type);
715 std::ostream & stream,
716 const OutputFrequency output_frequency,
717 const OutputType output_type);
744 const OutputFrequency output_frequency,
745 const OutputType output_type);
758 enter_subsection(
const std::string §ion_name);
765 leave_subsection(
const std::string §ion_name =
"");
770 std::map<std::string, double>
771 get_summary_data(
const OutputData kind)
const;
778 print_summary()
const;
798 print_wall_time_statistics(
const MPI_Comm mpi_comm,
799 const double print_quantile = 0.)
const;
908 return last_lap_wall_time_data;
916 return accumulated_wall_time_data;
921template <
class StreamType>
926 stream << statistic.
max <<
" wall,"
927 <<
" max @" << statistic.
max_index <<
", min=" << statistic.
min <<
" @"
928 << statistic.
min_index <<
", avg=" << statistic.
avg << std::endl;
933template <
class StreamType>
938 stream << statistic.
max <<
" wall,"
939 <<
" max @" << statistic.
max_index <<
", min=" << statistic.
min <<
" @"
940 << statistic.
min_index <<
", avg=" << statistic.
avg << std::endl;
946 const std::string & section_name_)
948 , section_name(section_name_)
963 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