From ece7d18cf35374bf4e26d041799cda8f791c89f8 Mon Sep 17 00:00:00 2001 From: gregor Date: Mon, 7 Jul 2003 10:58:37 +0000 Subject: Initial commit git-svn-id: https://joinup.ec.europa.eu/svn/moa-idspss/trunk@2 d688527b-c9ab-4aba-bd8d-4036d912da1d --- .../at/gv/egovernment/moa/util/MOATimer.html | 326 +++++++++++++++++++++ 1 file changed, 326 insertions(+) create mode 100644 spss.server/doc/api-doc-internal/at/gv/egovernment/moa/util/MOATimer.html (limited to 'spss.server/doc/api-doc-internal/at/gv/egovernment/moa/util/MOATimer.html') diff --git a/spss.server/doc/api-doc-internal/at/gv/egovernment/moa/util/MOATimer.html b/spss.server/doc/api-doc-internal/at/gv/egovernment/moa/util/MOATimer.html new file mode 100644 index 000000000..43ff7ea9a --- /dev/null +++ b/spss.server/doc/api-doc-internal/at/gv/egovernment/moa/util/MOATimer.html @@ -0,0 +1,326 @@ + + + + + + +MOA SP/SS Server Internal API: Class MOATimer + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+ +

+ +at.gv.egovernment.moa.util +
+Class MOATimer

+
+java.lang.Object
+  |
+  +--at.gv.egovernment.moa.util.MOATimer
+
+
+
+
public class MOATimer
extends Object
+ +

+A timer utility for named timers. +

+

+
Author:
Sven Aigner
+
+
+ +

+ + + + + + + + + + + + + + + + + +
+Constructor Summary
+protected MOATimer() + +
+          Create a new MOATimer. + +
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ voidclearTiming(String id) + +
+          Remove a timing.
+ longduration(Object id) + +
+          Get the duration of an action.
+ StringdurationAsString(Object id) + +
+          Get the duration of an action, as a nicely formatted String.
+static MOATimergetInstance() + +
+          Return the single instance of this class.
+ voidstartTiming(Object id) + +
+          Start timing a certain action. + +
+ voidstopTiming(Object id) + +
+          Stop timing an action.
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+  +

+ + + + + + + + + + + +
+Constructor Detail
+ +

+MOATimer

+
+protected MOATimer()
+
+
Create a new MOATimer. + + Protected to disallow multiple instances.
+ + + + + + + + +
+Method Detail
+ +

+getInstance

+
+public static MOATimer getInstance()
+
+
Return the single instance of this class.
+
Returns:
The single instance of this class.
+
+
+
+ +

+startTiming

+
+public void startTiming(Object id)
+
+
Start timing a certain action. + + The timing belonging to the action ID is garbage collected as soon as there + exists no other reference to the action ID.
+
Parameters:
id - The action ID.
+
+
+
+ +

+stopTiming

+
+public void stopTiming(Object id)
+
+
Stop timing an action.
+
Parameters:
id - The action ID.
+
+
+
+ +

+duration

+
+public long duration(Object id)
+
+
Get the duration of an action.
+
Parameters:
id - The action ID for which to compute the duration.
Returns:
long The duration in milliseconds between calls to + startTiming() and stopTiming(). If + only startTiming() has been called for the action, then + current difference to the system time is returned. If no timing exists for + the action, - 1 is returned.
+
+
+
+ +

+durationAsString

+
+public String durationAsString(Object id)
+
+
Get the duration of an action, as a nicely formatted String.
+
Parameters:
id - The action ID.
Returns:
String The duration() as a String.
+
+
+
+ +

+clearTiming

+
+public void clearTiming(String id)
+
+
Remove a timing.
+
Parameters:
id - The action ID.
+
+
+ +
+ + + + + + + + + + + + + + + + + +
+ +
+ + +
+ + + -- cgit v1.2.3