This is the mail archive of the gcc-bugs@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]
Other format: [Raw text]

[Bug fortran/34533] DTIME returns total process time and not since last invocation



------- Comment #8 from dfranke at gcc dot gnu dot org  2007-12-20 21:39 -------
> one needs to make dtime() a full-fledged intrinsic procedure.

This minute, I just realized the same ...


> Daniel, are you working on this PR?

Sort of. Finished the library part.

Btw, CPU_TIME has a fallback implementation using times(2). As "times() 
returns  the  number of clock ticks that have elapsed since an arbitrary point
in the past", it is IMO unsuitable to be used with CPU_TIME. CPU_TIME is
supposed to return a "value representing the elapsed CPU time in seconds [since
start of the program]". Thus, I ditched this fallback for the common
implementation.


-- 

dfranke at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |dfranke at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2007-12-20 16:41:21         |2007-12-20 21:39:29
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34533


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