Functions | Variables
oomph::CumulativeTimings Namespace Reference

/////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////// 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...
 

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 255 of file oomph_utilities.cc.

References i, and Timing.

◆ halt()

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

Halt i-th timer.

Definition at line 249 of file oomph_utilities.cc.

References i, Start_time, and Timing.

◆ reset() [1/2]

void oomph::CumulativeTimings::reset ( )

Reset all timers.

Definition at line 267 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 261 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 277 of file oomph_utilities.cc.

References Start_time, and Timing.

Referenced by oomph::Timer::Timer().

◆ start()

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

Variable Documentation

◆ Start_time

Vector< clock_t > oomph::CumulativeTimings::Start_time

Start times of active timers.

Definition at line 287 of file oomph_utilities.cc.

Referenced by halt(), oomph::Timer::halt(), set_ntimers(), oomph::Timer::set_ntimers(), start(), and oomph::Timer::start().

◆ Timing

Vector< clock_t > oomph::CumulativeTimings::Timing