Added method clean for eoTimerStat
This commit is contained in:
parent
16cbf69d5d
commit
aa5e8bf6f3
1 changed files with 8 additions and 0 deletions
|
|
@ -318,6 +318,14 @@ class eoTimerStat
|
||||||
return _stats;
|
return _stats;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Empties the statistics map.
|
||||||
|
*/
|
||||||
|
void clear()
|
||||||
|
{
|
||||||
|
_stats.clear();
|
||||||
|
}
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
// Statistics map: links a key (string) to a statistic.
|
// Statistics map: links a key (string) to a statistic.
|
||||||
std::map< std::string, Stat > _stats;
|
std::map< std::string, Stat > _stats;
|
||||||
|
|
|
||||||
Reference in a new issue