BEM++  2.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Public Member Functions | Private Attributes | List of all members
Bempp::AutoTimer Class Reference

Timer that on destruction outputs the time elapsed since construction. More...

#include </home/wojtek/Projects/BEM/bempp-sven/bempp/lib/common/auto_timer.hpp>

Public Member Functions

 AutoTimer (const char *text=0)
 Constructor. More...
 
 AutoTimer (const std::string &text=std::string())
 
 ~AutoTimer ()
 Destructor. Print the previously specified message.
 

Private Attributes

std::string m_text
 
tbb::tick_count m_start
 

Detailed Description

Timer that on destruction outputs the time elapsed since construction.

Constructor & Destructor Documentation

Bempp::AutoTimer::AutoTimer ( const char *  text = 0)
inlineexplicit

Constructor.

Parameters
[in]textMessage to be printed on destruction.
Bempp::AutoTimer::AutoTimer ( const std::string &  text = std::string())
inlineexplicit

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.


The documentation for this class was generated from the following file: