[gs-cvs] rev 8720 - trunk/gs/src

ray at ghostscript.com ray at ghostscript.com
Thu May 8 14:47:07 PDT 2008


Author: ray
Date: 2008-05-08 14:47:07 -0700 (Thu, 08 May 2008)
New Revision: 8720

Modified:
   trunk/gs/src/imain.c
Log:
Use 'realtime' instead of 'usertime' for -Z: timing information. On some
systems (Windows) these are equivalent, but on linux, 'usertime' is the
time for the current thread which interferes with timing collection on
different threads (multi-threaded rendering did not include any time for
the threads). INCOMPATIBLE CHANGE, but this is only debug info.


Modified: trunk/gs/src/imain.c
===================================================================
--- trunk/gs/src/imain.c	2008-05-08 21:28:30 UTC (rev 8719)
+++ trunk/gs/src/imain.c	2008-05-08 21:47:07 UTC (rev 8720)
@@ -115,7 +115,7 @@
 #   else
        /* plmain settings remain in effect */
 #   endif
-    gp_get_usertime(minst->base_time);
+    gp_get_realtime(minst->base_time);
 
     /* Initialize the file search paths. */
     paths = (ref *) gs_alloc_byte_array(minst->heap, max_lib_paths, sizeof(ref),
@@ -854,7 +854,7 @@
     ulong allocated = 0, used = 0;
     long utime[2];
 
-    gp_get_usertime(utime);
+    gp_get_realtime(utime);
     {
 	int i;
 



More information about the gs-cvs mailing list