#include <Teuchos_Time.hpp>
Public Member Functions | |
| Time (const string &name, bool start=false) | |
| Construct with a descriptive name. | |
| void | start (bool reset=false) |
| Starts the timer. | |
| double | stop () |
| Stops the timer. | |
| double | totalElapsedTime () const |
| Returns the total time accumulated by this timer. This should be called only when the clock is stopped.. | |
| bool | isRunning () const |
| Indicates if this timer is currently running, i.e., if it has been started but not yet stopped. | |
| const string & | name () const |
| Return the name of this timer. | |
Static Public Member Functions | |
| double | wallTime () |
| Returns current wall-clock time in seconds. | |
Private Attributes | |
| double | startTime_ |
| double | totalTime_ |
| bool | isRunning_ |
| string | name_ |
To time a section of code, place it in between calls to start() and stop().
Definition at line 65 of file Teuchos_Time.hpp.
|
||||||||||||
|
Construct with a descriptive name.
Definition at line 48 of file Teuchos_Time.cpp. |
|
|
Returns current wall-clock time in seconds.
Definition at line 72 of file Teuchos_Time.cpp. |
|
|
Starts the timer.
Definition at line 54 of file Teuchos_Time.cpp. |
|
|
Stops the timer.
Definition at line 61 of file Teuchos_Time.cpp. |
|
|
Returns the total time accumulated by this timer. This should be called only when the clock is stopped..
Definition at line 83 of file Teuchos_Time.hpp. |
|
|
Indicates if this timer is currently running, i.e., if it has been started but not yet stopped. It is necessary to know if a timer is running to avoid incorrectly starting or stopping in reentrant code. Definition at line 90 of file Teuchos_Time.hpp. |
|
|
Return the name of this timer.
Definition at line 93 of file Teuchos_Time.hpp. |
|
|
Definition at line 96 of file Teuchos_Time.hpp. |
|
|
Definition at line 98 of file Teuchos_Time.hpp. |
|
|
Definition at line 100 of file Teuchos_Time.hpp. |
|
|
Definition at line 102 of file Teuchos_Time.hpp. |
1.3.9.1