IPPL (Independent Parallel Particle Layer)
IPPL
Loading...
Searching...
No Matches
Timer Class Reference

#include <Timer.h>

Collaboration diagram for Timer:

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 = IPPL_ENABLE_TIMER_FENCES

Private Attributes

double elapsed_m
timer_type start_m
timer_type stop_m

Detailed Description

Definition at line 17 of file Timer.h.

Member Typedef Documentation

◆ duration_type

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

Definition at line 20 of file Timer.h.

◆ timer_type

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

Definition at line 19 of file Timer.h.

Constructor & Destructor Documentation

◆ Timer()

Timer::Timer ( )

Definition at line 13 of file 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 Timer.cpp.

References elapsed_m.

Referenced by Timer().

Here is the caller graph for this function:

◆ elapsed()

double Timer::elapsed ( )

Definition at line 36 of file Timer.cpp.

References elapsed_m.

Referenced by stop().

Here is the caller graph for this function:

◆ start()

void Timer::start ( )

Definition at line 21 of file Timer.cpp.

References start_m.

◆ stop()

void Timer::stop ( )

Definition at line 25 of file Timer.cpp.

References elapsed(), elapsed_m, enableFences, start_m, and stop_m.

Here is the call graph for this function:

Member Data Documentation

◆ elapsed_m

double Timer::elapsed_m
private

Definition at line 33 of file Timer.h.

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

◆ enableFences

bool Timer::enableFences = IPPL_ENABLE_TIMER_FENCES
static

Definition at line 22 of file Timer.h.

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

◆ start_m

timer_type Timer::start_m
private

Definition at line 34 of file Timer.h.

Referenced by start(), and stop().

◆ stop_m

timer_type Timer::stop_m
private

Definition at line 34 of file Timer.h.

Referenced by stop().


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