Namespace for global (cumulative) timings. More...
Functions | |
void | start (const unsigned &i) |
(Re-)start i-th timer More... | |
void | halt (const unsigned &i) |
Halt i-th timer. More... | |
double | cumulative_time (const unsigned &i) |
Report time accumulated by i-th timer. More... | |
void | reset (const unsigned &i) |
Reset i-th timer. More... | |
void | reset () |
Reset all timers. More... | |
void | set_ntimers (const unsigned &ntimers) |
Set number of timings that can be recorded in parallel. More... | |
Variables | |
Vector< clock_t > | Timing |
Cumulative timings. More... | |
Vector< clock_t > | Start_time |
Start times of active timers. More... | |
Namespace for global (cumulative) timings.
double oomph::CumulativeTimings::cumulative_time | ( | const unsigned & | i | ) |
Report time accumulated by i-th timer.
Definition at line 153 of file oomph_utilities.cc.
References Timing.
Referenced by oomph::TypeNames::get_type_name().
void oomph::CumulativeTimings::halt | ( | const unsigned & | i | ) |
Halt i-th timer.
Definition at line 147 of file oomph_utilities.cc.
References i, Start_time, and Timing.
Referenced by oomph::TypeNames::get_type_name().
void oomph::CumulativeTimings::reset | ( | const unsigned & | i | ) |
Reset i-th timer.
Definition at line 159 of file oomph_utilities.cc.
Referenced by oomph::TypeNames::get_type_name(), and oomph::NonLinearElasticitySmoothMesh< ELEMENT >::operator()().
void oomph::CumulativeTimings::reset | ( | ) |
void oomph::CumulativeTimings::set_ntimers | ( | const unsigned & | ntimers | ) |
Set number of timings that can be recorded in parallel.
Definition at line 175 of file oomph_utilities.cc.
References Start_time, and Timing.
Referenced by oomph::TypeNames::get_type_name(), and oomph::Timer::Timer().
void oomph::CumulativeTimings::start | ( | const unsigned & | i | ) |
(Re-)start i-th timer
Definition at line 141 of file oomph_utilities.cc.
References i, and Start_time.
Referenced by oomph::RefineableTetMeshBase::compute_volume_target(), oomph::SuperLUSolver::factorise_serial(), oomph::TypeNames::get_type_name(), oomph::RefineableQElement< 2 >::interpolated_zeta_on_edge(), oomph::RefineableQElement< 3 >::interpolated_zeta_on_face(), oomph::METIS::partition_mesh(), oomph::BlockTriangularPreconditioner< MATRIX >::preconditioner_solve(), and oomph::PseudoElasticPreconditionerSubsidiaryBlockPreconditionerOld::preconditioner_solve().
Vector< clock_t > oomph::CumulativeTimings::Start_time |
Start times of active timers.
Definition at line 185 of file oomph_utilities.cc.
Referenced by oomph::TypeNames::get_type_name(), halt(), oomph::Timer::halt(), set_ntimers(), oomph::Timer::set_ntimers(), start(), and oomph::Timer::start().
Vector< clock_t > oomph::CumulativeTimings::Timing |
Cumulative timings.
Definition at line 182 of file oomph_utilities.cc.
Referenced by cumulative_time(), oomph::Timer::cumulative_time(), oomph::TypeNames::get_type_name(), halt(), oomph::Timer::halt(), reset(), oomph::Timer::reset(), set_ntimers(), and oomph::Timer::set_ntimers().