This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/34533] DTIME returns total process time and not since last invocation
- From: "dfranke at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Dec 2007 21:39:30 -0000
- Subject: [Bug fortran/34533] DTIME returns total process time and not since last invocation
- References: <bug-34533-13404@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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