Here is the function. Don't forget to #DEFINE HAVE_GETTIMEOFDAY in config-win32.h. Let me know what you think.
Derek Burdick ----- Original Message ----- From: "James Yonan" <j...@yonan.net> To: "Derek Burdick" <de...@burdick.cc>; <openvpn-devel@lists.sourceforge.net> Sent: Tuesday, April 27, 2004 12:48 PM Subject: Re: [Openvpn-devel] Windows and Shaper > Derek Burdick <de...@burdick.cc> said: > > > I was browsing the online CVS repository and noticed the > > config-win32.h.in says that HAVE_GETTIMEOFDAY is specified in misc.c. When > > I look in misc.c, I don't see the file. Is the latest version just not > > checked in? I also implemented a gettimeofday for windows. It is based on > > QueryPerformanceCounter. If you are interested in this version let me know. > > If somebody knows the correct status of gettimeofday for the cvs code, I > > would appreciate an update. > > Derek, > > Yes, I'd like to see your gettimeofday for Windows that uses > QueryPerformanceCounter. OpenVPN 2.0 will have a gettimeofday function for > Windows so that --shaper and --mode server can be supported. > > James > >
windows-gtod.diff
Description: Binary data