OOPS
oops::PostTimer Class Reference

Handles timing of post-processing and similar actions. More...

#include <PostTimer.h>

Inheritance diagram for oops::PostTimer:
Collaboration diagram for oops::PostTimer:

Public Member Functions

 PostTimer ()
 
 PostTimer (const eckit::Configuration &)
 
 PostTimer (const util::DateTime &, const util::DateTime &, const util::Duration &)
 
void initialize (const util::DateTime &, const util::DateTime &)
 
bool itIsTime (const util::DateTime &)
 

Private Attributes

PostTimerParameters options_
 
util::DateTime bgn_
 
util::DateTime end_
 
std::unique_ptr< util::DateTime > start_
 
std::unique_ptr< util::DateTime > finish_
 
std::vector< util::DateTime > pptimes_
 

Detailed Description

Handles timing of post-processing and similar actions.

By default processing is performed on every call.

Definition at line 33 of file oops/base/PostTimer.h.

Constructor & Destructor Documentation

◆ PostTimer() [1/3]

oops::PostTimer::PostTimer ( )

Definition at line 26 of file oops/base/PostTimer.cc.

◆ PostTimer() [2/3]

oops::PostTimer::PostTimer ( const eckit::Configuration &  conf)
explicit

Definition at line 29 of file oops/base/PostTimer.cc.

◆ PostTimer() [3/3]

oops::PostTimer::PostTimer ( const util::DateTime &  start,
const util::DateTime &  finish,
const util::Duration &  freq 
)

Definition at line 34 of file oops/base/PostTimer.cc.

Member Function Documentation

◆ initialize()

void oops::PostTimer::initialize ( const util::DateTime &  bgn,
const util::DateTime &  end 
)

Definition at line 44 of file oops/base/PostTimer.cc.

Here is the caller graph for this function:

◆ itIsTime()

bool oops::PostTimer::itIsTime ( const util::DateTime &  now)

Definition at line 61 of file oops/base/PostTimer.cc.

Here is the caller graph for this function:

Member Data Documentation

◆ bgn_

util::DateTime oops::PostTimer::bgn_
private

Definition at line 44 of file oops/base/PostTimer.h.

◆ end_

util::DateTime oops::PostTimer::end_
private

Definition at line 45 of file oops/base/PostTimer.h.

◆ finish_

std::unique_ptr<util::DateTime> oops::PostTimer::finish_
private

Definition at line 47 of file oops/base/PostTimer.h.

◆ options_

PostTimerParameters oops::PostTimer::options_
private

Definition at line 43 of file oops/base/PostTimer.h.

◆ pptimes_

std::vector<util::DateTime> oops::PostTimer::pptimes_
private

Definition at line 48 of file oops/base/PostTimer.h.

◆ start_

std::unique_ptr<util::DateTime> oops::PostTimer::start_
private

Definition at line 46 of file oops/base/PostTimer.h.


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