diff options
author | Josh Blum | 2013-03-04 02:41:18 -0600 |
---|---|---|
committer | Josh Blum | 2013-03-04 02:41:18 -0600 |
commit | 885ad4bdc59f6bb97c2b472c06f5c63bd0391203 (patch) | |
tree | 75dcc67ecde6e260fd80463d6b49b7337701f8b6 /lib/gras_impl/stats.hpp | |
parent | e2268f682b77fdff1db5ddc6c410e226eb3dc1d5 (diff) | |
download | sandhi-885ad4bdc59f6bb97c2b472c06f5c63bd0391203.tar.gz sandhi-885ad4bdc59f6bb97c2b472c06f5c63bd0391203.tar.bz2 sandhi-885ad4bdc59f6bb97c2b472c06f5c63bd0391203.zip |
gras: move timer accumulate into public header
Diffstat (limited to 'lib/gras_impl/stats.hpp')
-rw-r--r-- | lib/gras_impl/stats.hpp | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/lib/gras_impl/stats.hpp b/lib/gras_impl/stats.hpp index 0514f90..03fdf3a 100644 --- a/lib/gras_impl/stats.hpp +++ b/lib/gras_impl/stats.hpp @@ -41,23 +41,6 @@ struct BlockStats time_ticks_t total_time_output; }; -struct TimerAccumulate -{ - TimerAccumulate(time_ticks_t &accum): - accum(accum), t0(time_now()){} - ~TimerAccumulate(void) - { - if (t0) this->done(); - } - void done(void) - { - accum += (time_now()-t0); - t0 = 0; - } - time_ticks_t &accum; - time_ticks_t t0; -}; - } //namespace gras #endif /*INCLUDED_LIBGRAS_IMPL_STATS_HPP*/ |