Looking at boost::timer::cpu_timer definition, I see that it doesn't seem to have any way to restart the timer. Is restarting a cpu_timer can only be done by recreating the timer object, or is there something I'm missing.
Asked
Active
Viewed 1,502 times
4
-
doesn't resume method do what you need? http://www.boost.org/doc/libs/1_55_0/libs/timer/doc/cpu_timers.html#resume – Vladimir Jun 02 '14 at 11:41
-
resume continues accumulating time, but it doesn't clear the already accumulated time. Or so it sounds to me. – Elektito Jun 02 '14 at 11:42
-
2what about `start()`? As I read the docs it seems to me that it resets the timer. (There would be no need for restart otherwise) – Csq Jun 02 '14 at 11:49
-
1Huh! Hadn't thought of that! Tested it, and it seems you're right. Stupid of me! :) – Elektito Jun 02 '14 at 11:54
-
@Elektito ok, I posted it as an answer then :) – Csq Jun 02 '14 at 12:02