
13 Dec
2005
13 Dec
'05
1:59 a.m.
<snip>
For the deadline_time, I am unsure as to whether functions like "expires_from_now" benefit from their default coupling to boost::datetime. Most timer operations in high performance I/O tend to be relative, which is easily expressed without a clock binding. It does help that asio only depends upon the headers of datetime.
What did you have in mind? I rather like the date_time way of expressing units as an aid to code documentation:
timer.expires_from_now(seconds(5));
This does read pretty nicely, I must admit.