63 std::string& processName();
66 const std::string& processName()
const;
78 double seconds()
const;
119 const TPZTimer& getTimer(
int i )
const;
122 std::string& processName(
int i );
125 const std::string& processName(
int i )
const;
146 double seconds(
int i )
const;
196 timers = std::vector< TPZTimer >( nT );
226 return timers[ i ].processName();
232 return timers[ i ].processName();
244 for(
unsigned int ii = 0; ii <
timers.size(); ii++ )
259 for(
unsigned int ii = 0; ii <
timers.size(); ii++ )
274 for(
unsigned int ii = 0; ii <
timers.size(); ii++ )
283 return timers[ i ].seconds();
The timer class. Utility.
~TPZTimer()
Default Destructor.
std::vector< TPZTimer > timers
Vector of timers.
std::string & processName(int i)
Gets the process name (for reporting purposes).
std::string ProcessName
Name of the process being timed.
void start()
Turns the timer on.
int waitstatus
Waiting status.
PZResourceUsage resources
Information on the resources used.
TPZMultiTimer(int nT)
Default constructor.
void reset()
Zeroes the timer.
void stop()
Turns the timer off, and computes the elapsed time.
std::string & processName()
Gets the process name (for reporting purposes).
void reset()
Zeroes the timer.
int nTimers() const
Number of active timers.
clock_t start
Wallclock time of process (start)
double seconds(int i) const
Returns the elapsed time in seconds.
double AccumSec
Total accumulated time in seconds.
Controls several timers at once. Utility.
clock_t elapsed
Wallclock time of process (elapsed)
Information on the resources used by a child process. Utility.
std::ostream & operator<<(std::ostream &out, const TPZCounter &count)
Re-implements << operator to show the counter (count) data.
double seconds() const
Returns the elapsed time in seconds.
TPZTimer & getTimer(int i)
Returns a specific timer.
~TPZMultiTimer()
Destructor.