|
spot 2.16
|
A map of timer, where each timer has a name. More...
#include <spot/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. | |
| 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 |
| Timer + count pair. | |
| typedef std::map< std::string, item_type > | tm_type |
| Timer map type. | |
Protected Attributes | |
| tm_type | tm |
| The map of named timers. | |
A map of timer, where each timer has a name.
Timer_map also keeps track of the number of measures each timer has performed.
|
protected |
Timer + count pair.
|
protected |
Timer map type.
|
inline |
|
inline |
| std::ostream & spot::timer_map::print | ( | std::ostream & | os | ) | const |
Format information about all timers in a table.
|
inline |
Remove information about all timers.
References tm.
|
inline |
Start a timer with name name.
The timer is created if it did not exist already. Once started, a timer should be either stop()ed or cancel()ed.
References tm.
Referenced by spot::swarmed_bloemen< State, SuccIterator, StateHash, StateEqual >::setup(), and spot::swarmed_bloemen_ec< State, SuccIterator, StateHash, StateEqual >::setup().
|
inline |
Stop timer name.
The timer must have been previously started with start().
References tm.
Referenced by spot::swarmed_bloemen< State, SuccIterator, StateHash, StateEqual >::finalize(), spot::swarmed_bloemen_ec< State, SuccIterator, StateHash, StateEqual >::finalize(), and spot::swarmed_bloemen_ec< State, SuccIterator, StateHash, StateEqual >::run().
|
inline |
Return the timer name.
References tm.
Referenced by spot::swarmed_bloemen< State, SuccIterator, StateHash, StateEqual >::walltime(), and spot::swarmed_bloemen_ec< State, SuccIterator, StateHash, StateEqual >::walltime().
|
protected |
1.9.8