Boost logo

Boost :

From: Andy Little (andy_at_[hidden])
Date: 2006-06-26 05:30:35


"Andy Little" <andy_at_[hidden]> wrote in message
news:e7o8mn$2pn$1_at_sea.gmane.org...
>
> "Jeff Garland" wrote
>> As for the interface, I'm almost amused that this pretty much trivial
>> interface continues to bring discussion. The timer proposal that's in the
>> vault now had the interface discussed at some length (see
>> http://www.crystalclearsoftware.com/cgi-bin/boost_wiki/wiki.pl?GDTL/Timer)
>> for
>> some links. The sketch for this is:
>>
>> class timer {
>> timer(time_duration initial_duration = time_duration(0,0,0),
>> START_OPTION start_op = AUTO_START);
>>
>> void start();
>> void restart() ;
>> time_duration elapsed() const;
>> void pause();
>> void resume();
>> void reset();
>> };

Is their any reason that one couldnt allow different implementations?

timer<time_duration> garland_timer;
timer<boost::system::microsends_t> dawes_timer;
timer<pqs::time::ms> andy_timer;
timer<my::time_type> my_timer;

regards
Andy Little


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk