OPAL (Object Oriented Parallel Accelerator Library) 2024.2
OPAL
Public Member Functions | Private Attributes | List of all members
Timer Class Reference

#include <Timer.h>

Public Member Functions

 Timer ()
 
void clear ()
 
void start ()
 
void stop ()
 
double clock_time ()
 
double cpu_time ()
 

Private Attributes

std::chrono::steady_clock::time_point wall_start_m
 
std::clock_t cpu_start_m
 
double wall_m
 
double cpu_m
 

Detailed Description

Definition at line 27 of file Timer.h.

Constructor & Destructor Documentation

◆ Timer()

Timer::Timer ( )

Definition at line 23 of file Timer.cpp.

References clear().

Here is the call graph for this function:

Member Function Documentation

◆ clear()

void Timer::clear ( )

◆ clock_time()

double Timer::clock_time ( )

◆ cpu_time()

double Timer::cpu_time ( )

Definition at line 52 of file Timer.cpp.

References cpu_m.

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

◆ start()

void Timer::start ( )

◆ stop()

void Timer::stop ( )

Member Data Documentation

◆ cpu_m

double Timer::cpu_m
private

Definition at line 43 of file Timer.h.

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

◆ cpu_start_m

std::clock_t Timer::cpu_start_m
private

Definition at line 40 of file Timer.h.

Referenced by start(), and stop().

◆ wall_m

double Timer::wall_m
private

Definition at line 42 of file Timer.h.

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

◆ wall_start_m

std::chrono::steady_clock::time_point Timer::wall_start_m
private

Definition at line 39 of file Timer.h.

Referenced by start(), and stop().


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