Reference documentation for deal.II version 9.0.0
|
Public Types | |
typedef clock_type_ | clock_type |
typedef clock_type::time_point | time_point_type |
typedef clock_type::duration | duration_type |
Public Member Functions | |
ClockMeasurements () | |
void | reset () |
Public Attributes | |
time_point_type | current_lap_start_time |
duration_type | accumulated_time |
duration_type | last_lap_time |
The Timer class stores timing information for two different clocks: a wall clock and a CPU usage clock. Since the logic for handling both clocks is, in most places, identical, we collect the relevant measurements for each clock into this struct
.
clock_type_ | The type of the clock whose measurements are being stored. This class should conform to the usual clock interface expected by std::chrono (i.e., the correct typedef s and a static now() method). |
typedef clock_type_ Timer::ClockMeasurements< clock_type_ >::clock_type |
typedef clock_type::time_point Timer::ClockMeasurements< clock_type_ >::time_point_type |
typedef clock_type::duration Timer::ClockMeasurements< clock_type_ >::duration_type |
Timer::ClockMeasurements< clock_type_ >::ClockMeasurements | ( | ) |
void Timer::ClockMeasurements< clock_type_ >::reset | ( | ) |
time_point_type Timer::ClockMeasurements< clock_type_ >::current_lap_start_time |
duration_type Timer::ClockMeasurements< clock_type_ >::accumulated_time |
duration_type Timer::ClockMeasurements< clock_type_ >::last_lap_time |