Boost logo

Boost :

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

"Andy Little" <andy_at_[hidden]> wrote in message
> "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
>> for
>> some links. The sketch for this is:
>> class timer {
>> timer(time_duration initial_duration = time_duration(0,0,0),
>> 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;

Andy Little

Boost list run by bdawes at, gregod at, cpdaniel at, john at