
18 Jun
2006
18 Jun
'06
2:50 p.m.
Silex wrote:
For whatever datatype the "elapsed" function returns, I think we had better have istream/ostream overloads for it. The current one returns "double", which works fine with istream/ostream. The overload should return or parse secs.fracsecs in all various forms.
Interesting, but this is a change request for the date_time lib then ? Maybe there's already an ostream& operator<< for the boost::posix_time::ptime etc types, I'll have a look.
There is and it does what you would expect with fractional seconds, etc. (eg: 00:00:01.1234567). With a facet you can control the format of the output. http://www.boost.org/doc/html/date_time/date_time_io.html Jeff