diff options
Diffstat (limited to 'qadevOOo/runner/convwatch/PerformanceContainer.java')
-rw-r--r-- | qadevOOo/runner/convwatch/PerformanceContainer.java | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/qadevOOo/runner/convwatch/PerformanceContainer.java b/qadevOOo/runner/convwatch/PerformanceContainer.java index d0c1e0fb5ed1..002813235034 100644 --- a/qadevOOo/runner/convwatch/PerformanceContainer.java +++ b/qadevOOo/runner/convwatch/PerformanceContainer.java @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -47,7 +47,7 @@ public class PerformanceContainer /* extends *//* implements */ { { m_nStartTime = _nStartTime; } - + /* return the time, which is done until last startTime() */ @@ -61,7 +61,7 @@ public class PerformanceContainer /* extends *//* implements */ { long nMeanTime = System.currentTimeMillis(); return nMeanTime - _nCurrentTimer; } - + /* public long stopTimer() { @@ -80,10 +80,10 @@ public class PerformanceContainer /* extends *//* implements */ { final static int Print = 2; final static int OfficeStart = 3; final static int StoreAsPDF = 4; - + private long m_nTime[]; private String m_sMSOfficeVersion; - + public PerformanceContainer() { m_nTime = new long[5]; @@ -93,7 +93,7 @@ public class PerformanceContainer /* extends *//* implements */ { m_nTime[i] = 0; } } - + public void setTime(int _nIndex, long _nValue) { m_nTime[_nIndex] = _nValue; @@ -102,12 +102,12 @@ public class PerformanceContainer /* extends *//* implements */ { { return m_nTime[_nIndex]; } - + public void startTime(int _nIndex) { m_nTime[_nIndex] = getStartTime(); } - + public void stopTime(int _nIndex) { m_nTime[_nIndex] = meanTime(m_nTime[_nIndex]); @@ -141,12 +141,12 @@ public class PerformanceContainer /* extends *//* implements */ { } return nValue; } - + public static long secondsToMilliSeconds(double _nSeconds) { return (long)(_nSeconds * 1000.0); } - + /* Helper function, which read some values from a given file @@ -192,7 +192,7 @@ public class PerformanceContainer /* extends *//* implements */ { { String sTime = sLine.substring(14); m_nTime[Print] = secondsToMilliSeconds(stringToDouble(sTime)); - } + } else if (sLine.startsWith("WordVersion=")) { String sMSOfficeVersion = sLine.substring(12); @@ -223,7 +223,7 @@ public class PerformanceContainer /* extends *//* implements */ { } try { - aRandomAccessFile.close(); + aRandomAccessFile.close(); } catch (java.io.IOException ie) { |