Boost logo

Boost :

From: Jeff Garland (jeff_at_[hidden])
Date: 2003-06-23 08:53:28


S. Seefeld wrote
> I'd suggest these two converters to be added:
>
> timeval to_timeval(const ptime &t)
>...
>
> timeval to_timeval(const time_duration &d)
>...
>
> the latter is especially useful as select() operates with durations,
> so there is no need to convert between 1970-01-01 relative dates and
> ptime...

Ok will do. I'll add some protections or rounding for when durations
support higher than microsecond resolution. I'll let you know when
this gets added.

Thx,

Jeff


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