Boost logo

Boost :

From: Jeff Garland (jeff_at_[hidden])
Date: 2004-04-22 17:37:27


On Thu, 22 Apr 2004 22:53:51 +0100, Val Samko wrote
> VS> What is the type of timeval, used in class microsec_clock?
>
> I just realised that you use posix function/struct there.
> Unfortunately this does not work with VC++.
>
> What about
> #ifdef _WIN32
> GetSystemTime(...)
>
> in microsec_time_clock.hpp ?

Sure, I have no problem putting in a Windows version of this. Technically
I've considered this feature 'experimental' in that I hadn't found time, nor
personal need to port it to Windows. It works fine on all platforms that define:

#ifdef BOOST_HAS_GETTIMEOFDAY

which does include some windows compilers. I notice that the test code now
actually gets defaulted to pass if a platform doesn't support this which is
odd b/c I know at least one Windows vendor that fixed their get time of day
implementation when I first put this in and the test was failing. Anyway,
that should be changed to fail if it is unavailable.

Jeff


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