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>
59 extern "C" int ftime(
struct timeb*);
60 #include <sys/resource.h>
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;
int getrusage(int, struct rusage *)
int ftime(struct timeb *)
String: the storage and methods of handling collections of characters.
double system() const
Get the system time (in seconds) since last "mark()".
void show(ostream &os) const
void mark()
Set the timer mark – i.e., start the clock ticking.
void show(ostream &os, const String &prefix) const
double system_usec() const
Get the system time (in microseconds) since last "mark()".
double all_usec() const
Get the user+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()".
void show() const
Show real, user, system time (in seconds) on cout or a user supplied stream.
double user_usec() const
Get the user time (in microseconds) since last "mark()".
void show(const String &) const
Show real, user, system time (in seconds) on cout or a user supplied stream preceeded by the string p...
double all() const
Get the user+system time (in seconds) since last "mark()".
Timer()
Construct a timer and set the mark ("mark()").
this file contains all the compiler specific defines