Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

Timer Class Reference

#include <Timer.h>

List of all members.

Public Methods

 Timer ()
virtual ~Timer ()
void start (void)
void pause (void)
double getReal (void) const
double getCPU (void) const
int getNumPageFaults (void) const
virtual void Print (ostream &s) const

Friends

ostream& operator<< (ostream &s, const Timer &E)


Detailed Description

A Timer object is an object which can be used to measure system resources, i.e. cpu time and memory usage. Currently for Unix systems only. COMPILE FLAG NEEDED.\

Definition at line 60 of file Timer.h.


Constructor & Destructor Documentation

Timer::Timer ( )
 

Does nothing.

Definition at line 50 of file Timer.cpp.

Timer::~Timer ( ) [virtual]
 

Does nothing.

Definition at line 60 of file Timer.cpp.


Member Function Documentation

void Timer::Print ( ostream & s ) const [virtual]
 

Definition at line 130 of file Timer.cpp.

Referenced by operator<<().

double Timer::getCPU ( void ) const
 

Definition at line 102 of file Timer.cpp.

int Timer::getNumPageFaults ( void ) const
 

Definition at line 115 of file Timer.cpp.

double Timer::getReal ( void ) const
 

{double getCPU(void) const;}

Definition at line 89 of file Timer.cpp.

void Timer::pause ( void )
 

Sets the accounting variables to mark the end of accounting period using the unix functions {times()} and {getrusage}.

Definition at line 77 of file Timer.cpp.

void Timer::start ( void )
 

Sets the accounting variables to mark the start of accounting period using the unix functions {times()} and {getrusage}.

Definition at line 66 of file Timer.cpp.


Friends And Related Function Documentation

ostream & operator<< ( ostream & s,
const Timer & E ) [friend]
 

Definition at line 172 of file Timer.cpp.


The documentation for this class was generated from the following files:
Copyright Contact Us