45 #ifndef _TEUCHOS_TIME_HPP_ 46 #define _TEUCHOS_TIME_HPP_ 58 #if ICL || defined(_WIN32) 63 #include <sys/resource.h> 79 class TEUCHOSCORE_LIB_DLL_EXPORT
Time {
86 Time (
const std::string& name,
bool start =
false);
93 static double wallTime ();
101 void start (
bool reset =
false);
128 double totalElapsedTime (
bool readCurrentTime =
false)
const;
143 const std::string&
name()
const {
149 void incrementNumCalls();
167 #endif // TEUCHOS_TIME_HPP_ Teuchos header file which uses auto-configuration information to include necessary C++ headers...
bool isEnabled() const
Whether the timer is enabled (see disable()).
bool isRunning() const
Whether the timer is currently running.
int numCalls() const
The number of times this timer has been called while enabled.
const std::string & name() const
The name of this timer.
The Teuchos namespace contains all of the classes, structs and enums used by Teuchos, as well as a number of utility routines.