casa::utilj::ThreadTimes Class Reference

#include <UtilJ.h>

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

List of all members.

Public Member Functions

 ThreadTimes ()
Double cpu () const
void clear ()
Bool empty () const
Double elapsed () const
DeltaThreadTimes operator- (const ThreadTimes &tEarlier) const

Static Public Member Functions

static ThreadTimes getTime ()
static Double toSeconds (const struct timeval &t)

Protected Member Functions

 ThreadTimes (Double elapsed, Double cpu)

Protected Attributes

Bool empty_p
Double cpu_p
Double elapsed_p

Detailed Description

Definition at line 386 of file UtilJ.h.


Constructor & Destructor Documentation

casa::utilj::ThreadTimes::ThreadTimes (  )  [inline]

Definition at line 390 of file UtilJ.h.

References getTime().

Referenced by getTime().

casa::utilj::ThreadTimes::ThreadTimes ( Double  elapsed,
Double  cpu 
) [inline, protected]

Definition at line 437 of file UtilJ.h.


Member Function Documentation

void casa::utilj::ThreadTimes::clear (  )  [inline]

Definition at line 393 of file UtilJ.h.

References empty_p, and casacore::True.

Double casa::utilj::ThreadTimes::cpu (  )  const [inline]

Reimplemented in casa::utilj::DeltaThreadTimes.

Definition at line 392 of file UtilJ.h.

References cpu_p.

Referenced by getTime().

Double casa::utilj::ThreadTimes::elapsed (  )  const [inline]

Reimplemented in casa::utilj::DeltaThreadTimes.

Definition at line 395 of file UtilJ.h.

References elapsed_p.

Referenced by getTime().

Bool casa::utilj::ThreadTimes::empty (  )  const [inline]

Definition at line 394 of file UtilJ.h.

References empty_p.

static ThreadTimes casa::utilj::ThreadTimes::getTime (  )  [inline, static]

Double cpu = ((Double) clock ()) / CLOCKS_PER_SEC; // should be in seconds

Definition at line 398 of file UtilJ.h.

References cpu(), casacore::C::e, elapsed(), getrusage(), ThreadTimes(), and toSeconds().

Referenced by ThreadTimes().

DeltaThreadTimes casa::utilj::ThreadTimes::operator- ( const ThreadTimes tEarlier  )  const
static Double casa::utilj::ThreadTimes::toSeconds ( const struct timeval &  t  )  [inline, static]

Definition at line 426 of file UtilJ.h.

References casacore::C::e.

Referenced by getTime().


Member Data Documentation

Double casa::utilj::ThreadTimes::cpu_p [protected]

Definition at line 434 of file UtilJ.h.

Referenced by cpu().

Definition at line 435 of file UtilJ.h.

Referenced by elapsed().

Definition at line 433 of file UtilJ.h.

Referenced by clear(), and empty().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 31 Aug 2016 for casa by  doxygen 1.6.1