Subject: Re: [Openvpn-devel] Windows and Shaper From: "James Yonan" Message-ID: In-Reply-To: <005901c42ca7$e7226c90$65ecd3d8@...202...> References: Sender: openvpn-devel-admin@lists.sourceforge.net Errors-To: openvpn-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Id: List-Post: List-Help: List-Subscribe: , List-Archive: Date: Wed Apr 28 13:31:09 2004 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: Derek Burdick , openvpn-devel@lists.sourceforge.net Derek, Thanks for the function, I like it better than the previous function which was using timeGetTime (and therefore has wraparound problems). I've merged it in test26 which should be released soon. James Derek Burdick said: > 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" > To: "Derek Burdick" ; > > Sent: Tuesday, April 27, 2004 12:48 PM > Subject: Re: [Openvpn-devel] Windows and Shaper > > > > Derek Burdick 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 > > > > > --