casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
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 408 of file UtilJ.h.


Constructor & Destructor Documentation

Definition at line 412 of file UtilJ.h.

References getTime().

Referenced by getTime().

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

Definition at line 459 of file UtilJ.h.


Member Function Documentation

Definition at line 415 of file UtilJ.h.

References empty_p, and casa::True.

Reimplemented in casa::utilj::DeltaThreadTimes.

Definition at line 414 of file UtilJ.h.

References cpu_p.

Referenced by getTime().

Reimplemented in casa::utilj::DeltaThreadTimes.

Definition at line 417 of file UtilJ.h.

References elapsed_p.

Referenced by getTime().

Definition at line 416 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 420 of file UtilJ.h.

References cpu(), casa::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 448 of file UtilJ.h.

References casa::C::e.

Referenced by getTime().


Member Data Documentation

Definition at line 456 of file UtilJ.h.

Referenced by cpu().

Definition at line 457 of file UtilJ.h.

Referenced by elapsed().

Definition at line 455 of file UtilJ.h.

Referenced by clear(), and empty().


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