guanaqo main
Utilities for scientific software
Loading...
Searching...
No Matches
guanaqo::Timed< TimingsCPU > Struct Reference

#include <guanaqo/timed-cpu.hpp>

Detailed Description

RAII class for measuring wall and CPU time.

Definition at line 28 of file timed-cpu.hpp.

Collaboration diagram for guanaqo::Timed< TimingsCPU >:

Public Member Functions

 Timed (TimingsCPU &time)
 ~Timed ()
 Timed (const Timed &)=delete
Timedoperator= (const Timed &)=delete

Private Types

using clock = std::chrono::steady_clock

Private Attributes

TimingsCPUtime
clock::time_point wall_start_time
int64_t cpu_start_time

Member Typedef Documentation

◆ clock

using guanaqo::Timed< TimingsCPU >::clock = std::chrono::steady_clock
private

Definition at line 35 of file timed-cpu.hpp.

Constructor & Destructor Documentation

◆ Timed() [1/2]

guanaqo::Timed< TimingsCPU >::Timed ( TimingsCPU & time)

Definition at line 44 of file timed-cpu.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ~Timed()

Definition at line 49 of file timed-cpu.cpp.

Here is the call graph for this function:

◆ Timed() [2/2]

guanaqo::Timed< TimingsCPU >::Timed ( const Timed< TimingsCPU > & )
delete
Here is the call graph for this function:

Member Function Documentation

◆ operator=()

Timed & guanaqo::Timed< TimingsCPU >::operator= ( const Timed< TimingsCPU > & )
delete
Here is the call graph for this function:

Member Data Documentation

◆ time

Definition at line 36 of file timed-cpu.hpp.

◆ wall_start_time

clock::time_point guanaqo::Timed< TimingsCPU >::wall_start_time
private

Definition at line 37 of file timed-cpu.hpp.

◆ cpu_start_time

int64_t guanaqo::Timed< TimingsCPU >::cpu_start_time
private

Definition at line 38 of file timed-cpu.hpp.


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