This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: gettimeofday
- From: Brian Ford <ford at vss dot fsi dot com>
- To: Tim Prince <tprince at computer dot org>
- Cc: Peng Yu <yupeng_ at hotmail dot com>, cygwin at cygwin dot com
- Date: Mon, 1 Mar 2004 12:51:00 -0600 (CST)
- Subject: Re: gettimeofday
- References: <BAY12-DAV48iixjnzi900000804@hotmail.com> <6.0.1.1.0.20040228224720.01f4cda0@imap.myrealbox.com> <BAY12-DAV13gm5D6wjZ00006c26@hotmail.com> <6.0.1.1.0.20040228230645.01f05dd8@imap.myrealbox.com>
- Reply-to: cygwin at cygwin dot com
On Sat, 28 Feb 2004, Tim Prince wrote:
> The implementation used by cygwin doesn't set the fractional seconds
> fields, so you must fall back on the Windows API for milliseconds.
>
and
> The cygwin specific code in the g77 date_and_time() source code shows use
> of the Windows API call to compensate for this lack in cygwin
> gettimeofday().
>
I think your information may be out-of-date. gettimeofday()
appears to currently have approximately one to two millisecond resolution
on XP. What do you see?
--
Brian Ford
Senior Realtime Software Engineer
VITAL - Visual Simulation Systems
FlightSafety International
Phone: 314-551-8460
Fax: 314-551-8444
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/