]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Additional ppm indicator especially interesting for those of us doing high-volume...
authorJeremias Maerki <jeremias@apache.org>
Mon, 23 May 2005 07:53:05 +0000 (07:53 +0000)
committerJeremias Maerki <jeremias@apache.org>
Mon, 23 May 2005 07:53:05 +0000 (07:53 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198667 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/area/AreaTreeHandler.java

index 01a4b616be9116f46741377f92b2d9947573e43e..88b19d3c67f9893718612ad7c1130e6fdde52cd5 100644 (file)
@@ -290,7 +290,9 @@ public class AreaTreeHandler extends FOEventHandler {
             log.debug("Total time used: " + timeUsed + "ms");
             log.debug("Pages rendered: " + pageCount);
             if (pageCount > 0) {
-                log.debug("Avg render time: " + (timeUsed / pageCount) + "ms/page");
+                long perPage = (timeUsed / pageCount);
+                long ppm = (timeUsed != 0 ? Math.round(60000 * pageCount / (double)timeUsed) : -1);
+                log.debug("Avg render time: " + perPage + "ms/page (" + ppm + "pages/min)");
             }
         }
     }