greenrd 01/02/20 11:52:20
Modified: src/org/apache/cocoon Profiler.java
Log:
added millisecond units
Revision Changes Path
1.3 +3 -3 xml-cocoon/src/org/apache/cocoon/Profiler.java
Index: Profiler.java
===================================================================
RCS file: /home/cvs/xml-cocoon/src/org/apache/cocoon/Profiler.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- Profiler.java 2000/12/09 01:11:30 1.2
+++ Profiler.java 2001/02/20 19:52:16 1.3
@@ -1,4 +1,4 @@
-/*-- $Id: Profiler.java,v 1.2 2000/12/09 01:11:30 greenrd Exp $ --
+/*-- $Id: Profiler.java,v 1.3 2001/02/20 19:52:16 greenrd Exp $ --
============================================================================
The Apache Software License, Version 1.1
@@ -72,7 +72,7 @@
* end of each process. Use getProfileTable to get the results as a DOM.
*
* @author <a href="mailto:[EMAIL PROTECTED]">Robin Green</a>
- * @version $Revision: 1.2 $ $Date: 2000/12/09 01:11:30 $
+ * @version $Revision: 1.3 $ $Date: 2001/02/20 19:52:16 $
*/
public class Profiler implements Actor, Status {
@@ -147,7 +147,7 @@
String event = (String) proc.nextElement ();
ProfProcess pp = (ProfProcess) map.get (event);
if (pp != null && pp.finished) {
- domWriter.addQuick (event, "" + pp.getDuration ());
+ domWriter.addQuick (event, pp.getDuration () + "ms");
}
else {
domWriter.addQuick (event, "-");