casa
$Rev:20696$
|
#include <UtilJ.h>
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 |
casa::utilj::ThreadTimes::ThreadTimes | ( | ) | [inline] |
casa::utilj::ThreadTimes::ThreadTimes | ( | Double | elapsed, |
Double | cpu | ||
) | [inline, protected] |
void casa::utilj::ThreadTimes::clear | ( | ) | [inline] |
Definition at line 415 of file UtilJ.h.
References empty_p, and casa::True.
Double casa::utilj::ThreadTimes::cpu | ( | ) | const [inline] |
Reimplemented in casa::utilj::DeltaThreadTimes.
Definition at line 414 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 417 of file UtilJ.h.
References elapsed_p.
Referenced by getTime().
Bool casa::utilj::ThreadTimes::empty | ( | ) | const [inline] |
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] |
Double casa::utilj::ThreadTimes::cpu_p [protected] |
Double casa::utilj::ThreadTimes::elapsed_p [protected] |
Bool casa::utilj::ThreadTimes::empty_p [protected] |