This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: g77 second function always returns 0.0 on mingw32/egcs-1.1
- To: N8TM at aol dot com
- Subject: Re: g77 second function always returns 0.0 on mingw32/egcs-1.1
- From: Mumit Khan <khan at xraylith dot wisc dot edu>
- Date: Fri, 25 Sep 1998 08:49:40 -0500
- Cc: David dot Billinghurst at riotinto dot com dot au, egcs at cygnus dot com
N8TM@aol.com writes:
> In a message dated 9/24/98 10:57:09 PM Pacific Daylight Time,
> David.Billinghurst@riotinto.com.au writes:
>
> > double G77_etime_0 (real tarray[2]
> > {
> > tarray[0] = ((real)clock()) / CLOCK_PER_SEC; /* user time */
> > tarray[1] = 0.0; /* system time */
> > return (tarray[0]+tarray[1]);
> > }
> >
> I would have thought that the W9x- compatible etime_.c which Mumit used for
> his egcs-1.1 cygwin32 distribution would work also for mingw32. It should be
> in his libf2c patches. It returns elapsed time, using the WinAPI
> QueryPerformancexxxx(). The one distributed with standard egcs "always"
> returns 0. on W95, but works with a resolution of .010 seconds on NT4.
It's probably a screwup on my part. I'll check it out and put up a fixed
library.
Tim, could you send me a testcase for your changes so that I can do the
right thing in the future. Thanks.
Regards,
Mumit