|
Boost : |
From: Philippe Vaucher (philippe.vaucher_at_[hidden])
Date: 2006-07-14 04:04:14
>
> if you want the timer to start immediatly when it is created of if you
> want to manually start it with tmr.start ().
>
That isn't very clear :
If you want the timer to start immediatly when the object is created you use
auto_start, if you want to manually start it you use manual_start and then
tmr.start().
A code makes it more clear :
// Timer will start automagically
microsec_timer tmr;
// Timer won't start
microsec_timer tmr2(microsec_timer::time_duration_type(0, 0, 0),
manual_start);
// Start timer now !
tmr2.start();
Philippe
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk