33 #include <sys/types.h>
38 #if defined(DOS) || defined(MSDOS)
39 #include <sys/timeb.h>
44 #elif defined(AIPS_SOLARIS) || defined(AIPS_IRIX) || defined(AIPS_OSF) || defined(__hpux__) || defined(AIPS_LINUX) || defined(AIPS_DARWIN) || defined(AIPS_BSD) || defined(__GLIBC__)
45 #if defined(AIPS_CRAY_PGI)
47 #include <sys/resource.h>
49 extern "C" int getrusage(
int,
struct rusage*);
51 #include <sys/times.h>
56 #include <sys/timeb.h>
58 extern "C" int getrusage(
int,
struct rusage*);
59 extern "C" int ftime(
struct timeb*);
60 #include <sys/resource.h>
163 void show(ostream &os)
const;
170 void show(ostream &os,
const String&prefix)
const;
189 #if defined(DOS) || defined(MSDOS)
192 #elif defined(AIPS_SOLARIS) || defined(AIPS_IRIX) || defined(AIPS_OSF) || defined(__hpux__) || defined(AIPS_LINUX) || defined(AIPS_DARWIN) || defined(AIPS_BSD) || defined(__GLIBC__)
193 #if defined(AIPS_CRAY_PGI)
196 struct timeval
real0;
void show() const
Show real, user, system time (in seconds) on cout or a user supplied stream.
Timer()
Construct a timer and set the mark ("mark()").
double all_usec() const
Get the user+system time (in microseconds) since last "mark()".
int ftime(struct timeb *)
double user_usec() const
Get the user time (in microseconds) since last "mark()".
measure the time it takes to execute parts of a program
void mark()
Set the timer mark – i.e., start the clock ticking.
int getrusage(int, struct rusage *)
double system() const
Get the system time (in seconds) since last "mark()".
double all() const
Get the user+system time (in seconds) since last "mark()".
String: the storage and methods of handling collections of characters.
double system_usec() const
Get the system time (in microseconds) since last "mark()".
double user() const
Get the user time (in seconds) since last "mark()".
double real() const
Get the real time (in seconds) since last "mark()".
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.