This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: g77 second function always returns 0.0 on mingw32/egcs-1.1


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]