
"Andy Little" <andy@servocomm.freeserve.co.uk> wrote in message news:e7o8mn$2pn$1@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