77 #include <sys/times.h> 78 #include <sys/resource.h> 95 struct tms tmsstart, tmsend;
96 struct rusage r1usage, r2usage;
97 struct rusage *r1us, *r2us;
104 double getCPU(
void)
const;
107 virtual void Print(std::ostream &s)
const;
108 friend std::ostream &operator<<(std::ostream &,
const Timer &);
110 std::ostream &operator<<(std::ostream &,
const Timer &);
void pause(void)
Sets the accounting variables to mark the end of accounting period using the unix functions times() a...
Definition: Timer.cpp:92
double getCPU(void) const
Uses the difference between the starting and ending accounting variables to determine the CPU time al...
Definition: Timer.cpp:113
int getNumPageFaults(void) const
Uses the difference between the starting and ending accounting variables to determine the number of p...
Definition: Timer.cpp:124
Timer(void)
Default constructor.
Definition: Timer.cpp:76
double getReal(void) const
Uses the difference between the starting and ending accounting variables to determine the elapsed rea...
Definition: Timer.cpp:102
Measure of system resources.
Definition: Timer.h:91
virtual void Print(std::ostream &s) const
Uses the difference between the starting and ending accounting variables to determine the real time...
Definition: Timer.cpp:137
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:34
void start(void)
Sets the accounting variables to mark the start of accounting period using the unix functions times()...
Definition: Timer.cpp:84