32 #include <casacore/casa/aips.h> 33 #include <sys/types.h> 36 #include <casacore/casa/iosfwd.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;
Timer()
Construct a timer and set the mark ("mark()").
double user_usec() const
Get the user time (in microseconds) since last "mark()".
void show() const
Show real, user, system time (in seconds) on cout or a user supplied stream.
double user() const
Get the user time (in seconds) since last "mark()".
double all_usec() const
Get the user+system time (in microseconds) since last "mark()".
double all() const
Get the user+system time (in seconds) since last "mark()".
double system_usec() const
Get the system time (in microseconds) since last "mark()".
int ftime(struct timeb *)
double real() const
Get the real time (in seconds) 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.
double system() const
Get the system time (in seconds) since last "mark()".
int getrusage(int, struct rusage *)
String: the storage and methods of handling collections of characters.
this file contains all the compiler specific defines