Functions | Variables
oomph::CumulativeTimings Namespace Reference

Namespace for global (cumulative) timings. More...

Functions

void start (const unsigned &i)
 (Re-)start i-th timer
 
void halt (const unsigned &i)
 Halt i-th timer.
 
double cumulative_time (const unsigned &i)
 Report time accumulated by i-th timer.
 
void reset (const unsigned &i)
 Reset i-th timer.
 
void reset ()
 Reset all timers.
 
void set_ntimers (const unsigned &ntimers)
 Set number of timings that can be recorded in parallel.
 

Variables

Vector< clock_tTiming
 Cumulative timings.
 
Vector< clock_tStart_time
 Start times of active timers.
 

Detailed Description

Namespace for global (cumulative) timings.

Function Documentation

◆ cumulative_time()

double oomph::CumulativeTimings::cumulative_time ( const unsigned i)

Report time accumulated by i-th timer.

Definition at line 263 of file oomph_utilities.cc.

References i, and Timing.

◆ halt()

void oomph::CumulativeTimings::halt ( const unsigned i)

Halt i-th timer.

Definition at line 257 of file oomph_utilities.cc.

References i, Start_time, and Timing.

◆ reset() [1/2]

void oomph::CumulativeTimings::reset ( )

Reset all timers.

Definition at line 275 of file oomph_utilities.cc.

References i, and Timing.

◆ reset() [2/2]

void oomph::CumulativeTimings::reset ( const unsigned i)

Reset i-th timer.

Definition at line 269 of file oomph_utilities.cc.

References i, and Timing.

◆ set_ntimers()

void oomph::CumulativeTimings::set_ntimers ( const unsigned ntimers)

Set number of timings that can be recorded in parallel.

Definition at line 285 of file oomph_utilities.cc.

References Start_time, and Timing.

◆ start()

void oomph::CumulativeTimings::start ( const unsigned i)

(Re-)start i-th timer

Definition at line 251 of file oomph_utilities.cc.

References i, and Start_time.

Variable Documentation

◆ Start_time

Vector< clock_t > oomph::CumulativeTimings::Start_time

Start times of active timers.

Definition at line 295 of file oomph_utilities.cc.

Referenced by halt(), set_ntimers(), and start().

◆ Timing

Vector< clock_t > oomph::CumulativeTimings::Timing

Cumulative timings.

Definition at line 292 of file oomph_utilities.cc.

Referenced by cumulative_time(), halt(), reset(), reset(), and set_ntimers().