Boost logo

Boost :

From: Andy Little (andy_at_[hidden])
Date: 2006-06-26 08:53:58


"Jeff Garland" wrote
> Andy Little wrote:
>> "Andy Little" wrote
>
>> 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;
>
> No, I'm certain I can make a policy based timer 'swiss army knife' timer that
> would allow you to swap out the guts with whatever you want. But, honestly, I
> think it's not worth the time it would take. But if you're moved to write it,
> be my guest.

Not really, but I hope I can make this work sometime (nb:quan was boost::pqs) :

quan::timer<quan::time::us> timer;

boost::posix_time::time_duration td = 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