|
libmoost
|
#include <timer.h>
Classes | |
| class | reassignable_scoped_time |
| class | scoped_time |
Public Types | |
| typedef std::map< std::string, boost::shared_ptr< timer > >::iterator | iterator |
| typedef std::map< std::string, boost::shared_ptr< timer > >::const_iterator | const_iterator |
Public Member Functions | |
| multi_timer (size_t resolution=4096) | |
| timer & | operator[] (const std::string &name) |
| timer & | operator() (const std::string &name, int max_threshold_time_ms) |
| boost::mutex & | mutex () |
| iterator | begin () |
| iterator | end () |
| const_iterator | begin () const |
| const_iterator | end () const |
Private Attributes | |
| size_t | m_resolution |
| boost::mutex | m_mutex |
| std::map< std::string, boost::shared_ptr< timer > > | m_timers |
multi_timer provides a thread-safe collection of timers indexed by name just a little syntactic confectionary
| typedef std::map< std::string, boost::shared_ptr< timer > >::const_iterator moost::multi_timer::const_iterator |
| typedef std::map< std::string, boost::shared_ptr< timer > >::iterator moost::multi_timer::iterator |
| moost::multi_timer::multi_timer | ( | size_t | resolution = 4096 | ) | [inline] |
| iterator moost::multi_timer::begin | ( | ) | [inline] |
| const_iterator moost::multi_timer::begin | ( | ) | const [inline] |
| iterator moost::multi_timer::end | ( | ) | [inline] |
| const_iterator moost::multi_timer::end | ( | ) | const [inline] |
| boost::mutex& moost::multi_timer::mutex | ( | ) | [inline] |
| timer& moost::multi_timer::operator() | ( | const std::string & | name, |
| int | max_threshold_time_ms | ||
| ) | [inline] |
| timer& moost::multi_timer::operator[] | ( | const std::string & | name | ) | [inline] |
boost::mutex moost::multi_timer::m_mutex [private] |
size_t moost::multi_timer::m_resolution [private] |
std::map< std::string, boost::shared_ptr< timer > > moost::multi_timer::m_timers [private] |