casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Member Functions | Private Attributes | Friends | List of all members
casa::utilj::DeltaThreadTimes Class Reference

#include <UtilJ.h>

Inheritance diagram for casa::utilj::DeltaThreadTimes:
casa::utilj::ThreadTimes

Public Member Functions

 DeltaThreadTimes ()
 
 DeltaThreadTimes (bool doStats)
 
DeltaThreadTimesoperator+= (const DeltaThreadTimes &other)
 
double cpu () const
 
double cpuAvg () const
 
double elapsed () const
 
double elapsedAvg () const
 
casacore::String formatAverage (const casacore::String &floatFormat="%6.1f", double scale=1000.0, const casacore::String &units="ms") const
 
casacore::String formatStats (const casacore::String &floatFormat="%6.1f", double scale=1000.0, const casacore::String &units="ms") const
 
int n () const
 

Protected Member Functions

 DeltaThreadTimes (double elapsed, double cpu)
 

Private Attributes

double cpuMin_p
 
double cpuMax_p
 
double cpuSsq_p
 
bool doStats_p
 
double elapsedMin_p
 
double elapsedMax_p
 
double elapsedSsq_p
 
int n_p
 
- Private Attributes inherited from casa::utilj::ThreadTimes
bool empty_p
 
double cpu_p
 
double elapsed_p
 

Friends

class ThreadTimes
 

Additional Inherited Members

- Private Member Functions inherited from casa::utilj::ThreadTimes
 ThreadTimes ()
 
double cpu () const
 
void clear ()
 
bool empty () const
 
double elapsed () const
 
DeltaThreadTimes operator- (const ThreadTimes &tEarlier) const
 
 ThreadTimes (double elapsed, double cpu)
 
- Static Private Member Functions inherited from casa::utilj::ThreadTimes
static ThreadTimes getTime ()
 
static double toSeconds (const struct timeval &t)
 

Detailed Description

Intended use:

Internal or

Intended use:

Internal

Review Status

Date Reviewed:
yyyy/mm/dd

Prerequisite

Etymology

Synopsis

Example

Motivation

Template Type Argument Requirements (T)

Thrown Exceptions

To Do

Definition at line 486 of file UtilJ.h.

Constructor & Destructor Documentation

casa::utilj::DeltaThreadTimes::DeltaThreadTimes ( )
inline

Definition at line 492 of file UtilJ.h.

casa::utilj::DeltaThreadTimes::DeltaThreadTimes ( bool  doStats)
inlineexplicit

Definition at line 493 of file UtilJ.h.

References cpuMax_p, cpuMin_p, cpuSsq_p, elapsedMax_p, elapsedMin_p, and elapsedSsq_p.

casa::utilj::DeltaThreadTimes::DeltaThreadTimes ( double  elapsed,
double  cpu 
)
inlineprotected

Definition at line 519 of file UtilJ.h.

Member Function Documentation

double casa::utilj::DeltaThreadTimes::cpu ( ) const
inline

Definition at line 505 of file UtilJ.h.

References casa::utilj::ThreadTimes::cpu().

Referenced by cpuAvg().

double casa::utilj::DeltaThreadTimes::cpuAvg ( ) const
inline

Definition at line 506 of file UtilJ.h.

References cpu(), and n_p.

double casa::utilj::DeltaThreadTimes::elapsed ( ) const
inline

Definition at line 507 of file UtilJ.h.

References casa::utilj::ThreadTimes::elapsed().

Referenced by elapsedAvg().

double casa::utilj::DeltaThreadTimes::elapsedAvg ( ) const
inline

Definition at line 508 of file UtilJ.h.

References elapsed(), and n_p.

casacore::String casa::utilj::DeltaThreadTimes::formatAverage ( const casacore::String floatFormat = "%6.1f",
double  scale = 1000.0,
const casacore::String units = "ms" 
) const
casacore::String casa::utilj::DeltaThreadTimes::formatStats ( const casacore::String floatFormat = "%6.1f",
double  scale = 1000.0,
const casacore::String units = "ms" 
) const
int casa::utilj::DeltaThreadTimes::n ( ) const
inline

Definition at line 515 of file UtilJ.h.

References n_p.

DeltaThreadTimes& casa::utilj::DeltaThreadTimes::operator+= ( const DeltaThreadTimes other)

Friends And Related Function Documentation

friend class ThreadTimes
friend

Definition at line 488 of file UtilJ.h.

Member Data Documentation

double casa::utilj::DeltaThreadTimes::cpuMax_p
private

Definition at line 524 of file UtilJ.h.

Referenced by DeltaThreadTimes().

double casa::utilj::DeltaThreadTimes::cpuMin_p
private

Definition at line 523 of file UtilJ.h.

Referenced by DeltaThreadTimes().

double casa::utilj::DeltaThreadTimes::cpuSsq_p
private

Definition at line 525 of file UtilJ.h.

Referenced by DeltaThreadTimes().

bool casa::utilj::DeltaThreadTimes::doStats_p
private

Definition at line 526 of file UtilJ.h.

double casa::utilj::DeltaThreadTimes::elapsedMax_p
private

Definition at line 528 of file UtilJ.h.

Referenced by DeltaThreadTimes().

double casa::utilj::DeltaThreadTimes::elapsedMin_p
private

Definition at line 527 of file UtilJ.h.

Referenced by DeltaThreadTimes().

double casa::utilj::DeltaThreadTimes::elapsedSsq_p
private

Definition at line 529 of file UtilJ.h.

Referenced by DeltaThreadTimes().

int casa::utilj::DeltaThreadTimes::n_p
private

Definition at line 530 of file UtilJ.h.

Referenced by cpuAvg(), elapsedAvg(), and n().


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