On Wed, Feb 22, 2012 at 6:37 PM, David Sommerseth <openvpn.l...@topphemmelig.net> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On 22/02/12 17:27, Heiko Hund wrote: >> On Wednesday 22 February 2012 16:12:24 Alon Bar-Lev wrote: >>> In windows there is own implementation of gettimeofday(). In the >>> past there was no gettimeofday(), so we used performance counters, >>> then James optimize it to reduce CPU consumption. >>> >>> Unlike in the past, mingw does provide this function these days. The >>> question is if it is good enough. >> >> Since there's no gettimeofday() in MSVC this will break building with >> the python build system. Not sure if we're in the process of getting >> rid of it, which I would welcome, so this is just for additional >> information. > > That's a valid point ... But it makes me think. What about to put James' > old code in compat.[ch] for platforms without gettimeofday. Would that > be an appropriate middle-road? > > I too would like to see MSVC go away. Very much. But again, let's not > decide that without James approval for it.
Again, There is nothing written about not supporting the proprietary gettimeofday implementation in MSVC. What exactly is the problem? You compile on *NIX you get system gettimeofday. You compile on mingw you get library gettimeofday. You compile on msvc you get own implementation. Wasn't I clear? Alon.