#include <source/toolbox/timers/Timer.h>
Inheritance diagram for SAMRAI::tbox::Timer:
Public Member Functions | |
virtual | ~Timer () |
const string & | getName () const |
int | getIdentifier () const |
void | start () |
void | stop () |
void | startExclusive () |
void | stopExclusive () |
void | reset () |
double | getTotalSystemTime () const |
double | getTotalUserTime () const |
double | getTotalWallclockTime () const |
double | getMaxWallclockTime () const |
double | getExclusiveSystemTime () const |
double | getExclusiveUserTime () const |
double | getExclusiveWallclockTime () const |
bool | isActive () const |
bool | isRunning () const |
void | setConcurrentTimer (const int id) |
bool * | getConcurrentTimerVector () const |
int | getNumberAccesses () const |
double | computeLoadBalanceEfficiency () |
void | computeMaxWallclock () |
virtual void | putToDatabase (Pointer< Database > db) |
virtual void | getFromRestart (Pointer< Database > db) |
Protected Member Functions | |
Timer (const string &name, const int id=-1) | |
void | setInactive () |
Friends | |
class | TimerManager |
|
Empty virtual destructor for Timer class. |
|
The constructor for the Timer class sets timer name string and integer identifiers, and initializes the timer state. |
|
Return string name for timer. |
|
Return integer identfier for timer. |
|
Start the timer if active. |
|
Stop the timer if active. |
|
Start exclusive time. |
|
Stop exclusive time. |
|
Reset the state of the timing information. |
|
Return total system time (between starts and stops) |
|
Return total user time |
|
Return total wallclock time |
|
Return max wallclock time |
|
Return exclusive system time. |
|
Return exclusive user time. |
|
Return exclusive wallclock time. |
|
Return true if the timer is active; false otherwise. |
|
Return true if timer is running; false otherwise. |
|
Mark given integer as id of timer running concurrently with this one. |
|
Return the concurrent timer vector. |
|
Return number of accesses to start()-stop() functions for the timer. |
|
Compute load balance efficiency based on wallclock (non-exclusive) time. |
|
Compute max wallclock time based on total (non-exclusive) time. |
|
Write timer data members to database. |
|
Read restarted times from restart database. When assertion checking is on, the database pointer must be non-null. |
|
|
|
|