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 #5 from dfranke at gcc dot gnu dot org  2007-12-20 18:35 -------
> I think gfortran will need to handle it similar to how random_seed is done.

Using a mutex, yes, that's what I thought as well. Btw, CPU_TIME gives values
per process and does not bother with threads. DTIME probably wants to do the
same?

While at it, a common time aquisition function for all three, CPU_TIME, DTIME
and ETIME, would be useful. Currently, ETIME has an implementation separate
from CPU_TIME -- but both use getrusage().


-- 


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]