50 using rep = duration::rep;
60 using time_point = std::chrono::time_point<CPUClock, duration>;
140 Timer(
const MPI_Comm &mpi_communicator,
const bool sync_lap_times =
false);
149 get_last_lap_wall_time_data()
const;
158 get_accumulated_wall_time_data()
const;
164 template <
class StreamType>
166 print_last_lap_wall_time_data(StreamType &stream)
const;
172 template <
class StreamType>
174 print_accumulated_wall_time_data(StreamType &stream)
const;
220 last_wall_time()
const;
238 last_cpu_time()
const;
252 template <
class clock_type_>
661 cpu_and_wall_times_grouped
675 const OutputFrequency output_frequency,
676 const OutputType output_type);
689 const OutputFrequency output_frequency,
690 const OutputType output_type);
716 std::ostream & stream,
717 const OutputFrequency output_frequency,
718 const OutputType output_type);
745 const OutputFrequency output_frequency,
746 const OutputType output_type);
759 enter_subsection(
const std::string §ion_name);
766 leave_subsection(
const std::string §ion_name =
"");
771 std::map<std::string, double>
772 get_summary_data(
const OutputData kind)
const;
779 print_summary()
const;
799 print_wall_time_statistics(
const MPI_Comm &mpi_comm,
800 const double print_quantile = 0.)
const;
909 return last_lap_wall_time_data;
917 return accumulated_wall_time_data;
922template <
class StreamType>
927 stream << statistic.
max <<
" wall,"
928 <<
" max @" << statistic.
max_index <<
", min=" << statistic.
min <<
" @"
929 << statistic.
min_index <<
", avg=" << statistic.
avg << std::endl;
934template <
class StreamType>
939 stream << statistic.
max <<
" wall,"
940 <<
" max @" << statistic.
max_index <<
", min=" << statistic.
min <<
" @"
941 << statistic.
min_index <<
", avg=" << statistic.
avg << std::endl;
947 const std::string & section_name_)
949 , section_name(section_name_)
964 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