This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix PR fortran/41157 -- dtime gives inconsistent results.


Steve Kargl wrote:
Here's a patch for fortran/41157.  dtime is documented
to return the execution since its last invocation.  For
x reasons that I don't fully understand, the current
implementation of dtime seems to skip saving the current
execution time on every other invocation.

It took me a while to figure out what's wrong with the original code. It stores the previous difference instead of the previous total time. Hilarity ensues.


Your patch is ok.

Cheers,
- Tobi


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