OPALX (Object Oriented Parallel Accelerator Library for Exascale) MINIorX
OPALX
Timer Class Reference

#include <Timer.h>

Collaboration diagram for Timer:
Collaboration graph

Public Types

using timer_type = std::chrono::time_point< std::chrono::high_resolution_clock >
 
using duration_type = std::chrono::duration< double >
 

Public Member Functions

 Timer ()
 
void clear ()
 
void start ()
 
void stop ()
 
double elapsed ()
 

Static Public Attributes

static bool enableFences = false
 

Private Attributes

double elapsed_m
 
timer_type start_m
 
timer_type stop_m
 

Detailed Description

Definition at line 17 of file ippl/src/Utility/Timer.h.

Member Typedef Documentation

◆ duration_type

using Timer::duration_type = std::chrono::duration<double>

Definition at line 20 of file ippl/src/Utility/Timer.h.

◆ timer_type

using Timer::timer_type = std::chrono::time_point<std::chrono::high_resolution_clock>

Definition at line 19 of file ippl/src/Utility/Timer.h.

Constructor & Destructor Documentation

◆ Timer()

Timer::Timer ( )

Definition at line 13 of file ippl/src/Utility/Timer.cpp.

References clear().

Here is the call graph for this function:

Member Function Documentation

◆ clear()

void Timer::clear ( )

Definition at line 17 of file ippl/src/Utility/Timer.cpp.

References elapsed_m.

Referenced by IpplTimerInfo::clear(), IpplTimerInfo::start(), and Timer().

◆ elapsed()

double Timer::elapsed ( )

Definition at line 36 of file ippl/src/Utility/Timer.cpp.

References elapsed_m.

Referenced by IpplTimerInfo::stop(), and stop().

◆ start()

void Timer::start ( )

Definition at line 21 of file ippl/src/Utility/Timer.cpp.

References start_m.

Referenced by IpplTimerInfo::start().

◆ stop()

void Timer::stop ( )

Definition at line 25 of file ippl/src/Utility/Timer.cpp.

References elapsed(), elapsed_m, enableFences, ippl::fence(), start_m, and stop_m.

Referenced by IpplTimerInfo::clear(), IpplTimerInfo::start(), and IpplTimerInfo::stop().

Here is the call graph for this function:

Member Data Documentation

◆ elapsed_m

double Timer::elapsed_m
private

Definition at line 33 of file ippl/src/Utility/Timer.h.

Referenced by clear(), elapsed(), and stop().

◆ enableFences

bool Timer::enableFences = false
static

Definition at line 22 of file ippl/src/Utility/Timer.h.

Referenced by ippl::initialize(), and stop().

◆ start_m

timer_type Timer::start_m
private

Definition at line 34 of file ippl/src/Utility/Timer.h.

Referenced by start(), and stop().

◆ stop_m

timer_type Timer::stop_m
private

Definition at line 34 of file ippl/src/Utility/Timer.h.

Referenced by stop().


The documentation for this class was generated from the following files: