All Packages Class Hierarchy This Package Previous Next Index
Class edu.vt.marian.common.Measurement
java.lang.Object
|
+----edu.vt.marian.common.Measurement
- public class Measurement
- extends Object
Used to measure system performance,
this can be used mutiple times. It will caculate the
average, and dump all the results to a file in human readable format.
-
OK
- possible return values of methods
-
WRONG_STATE
-
-
Measurement(String)
- this constructor will create a PerformanceMeasurement object, there is no
Measurement at this time
-
end(long)
- this method will record a start time for the measurement specified by the
parameter measurement_id
-
start(long)
- this will add a new measurement into this object, the return value is the id of
this measurement and can be used to do measure later
-
to_stream(PrintWriter)
- this method will record a end time for the specified measurement_id
OK
public static final int OK
- possible return values of methods
WRONG_STATE
public static final int WRONG_STATE
Measurement
public Measurement(String des)
- this constructor will create a PerformanceMeasurement object, there is no
Measurement at this time
start
public int start(long time)
- this will add a new measurement into this object, the return value is the id of
this measurement and can be used to do measure later
end
public int end(long time)
- this method will record a start time for the measurement specified by the
parameter measurement_id
to_stream
public int to_stream(PrintWriter pw)
- this method will record a end time for the specified measurement_id
All Packages Class Hierarchy This Package Previous Next Index