spot
0.8.3
|
A map of timer, where each timer has a name. More...
#include <misc/timer.hh>
Public Member Functions | |
void | start (const std::string &name) |
Start a timer with name name. | |
void | stop (const std::string &name) |
Stop timer name. | |
void | cancel (const std::string &name) |
Cancel timer name. | |
const spot::timer & | timer (const std::string &name) const |
Return the timer name. | |
spot::timer & | timer (const std::string &name) |
Return the timer name. | |
bool | empty () const |
Whether there is no timer in the map. | |
std::ostream & | print (std::ostream &os) const |
Format information about all timers in a table. | |
void | reset_all () |
Remove information about all timers. | |
Protected Types | |
typedef std::pair< spot::timer, int > | item_type |
typedef std::map< std::string, item_type > | tm_type |
Protected Attributes | |
tm_type | tm |
A map of timer, where each timer has a name.
Timer_map also keeps track of the number of measures each timer has performed.
typedef std::pair<spot::timer, int> spot::timer_map::item_type [protected] |
typedef std::map<std::string, item_type> spot::timer_map::tm_type [protected] |
void spot::timer_map::cancel | ( | const std::string & | name | ) | [inline] |
bool spot::timer_map::empty | ( | ) | const [inline] |
std::ostream& spot::timer_map::print | ( | std::ostream & | os | ) | const |
Format information about all timers in a table.
void spot::timer_map::reset_all | ( | ) | [inline] |
Remove information about all timers.
References tm.
void spot::timer_map::start | ( | const std::string & | name | ) | [inline] |
void spot::timer_map::stop | ( | const std::string & | name | ) | [inline] |
const spot::timer& spot::timer_map::timer | ( | const std::string & | name | ) | const [inline] |
Return the timer name.
References tm.
spot::timer& spot::timer_map::timer | ( | const std::string & | name | ) | [inline] |
Return the timer name.
References tm.
tm_type spot::timer_map::tm [protected] |