From aa5e8bf6f32e6613f64d2b3a17e603431f7c0451 Mon Sep 17 00:00:00 2001 From: Benjamin BOUVIER Date: Tue, 18 Sep 2012 20:50:26 -0400 Subject: [PATCH] Added method clean for eoTimerStat --- eo/src/utils/eoTimer.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/eo/src/utils/eoTimer.h b/eo/src/utils/eoTimer.h index 4ff451b48..23d6df924 100644 --- a/eo/src/utils/eoTimer.h +++ b/eo/src/utils/eoTimer.h @@ -318,6 +318,14 @@ class eoTimerStat return _stats; } + /** + * @brief Empties the statistics map. + */ + void clear() + { + _stats.clear(); + } + protected: // Statistics map: links a key (string) to a statistic. std::map< std::string, Stat > _stats;