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.


Variable Index

 o OK
possible return values of methods
 o WRONG_STATE

Constructor Index

 o Measurement(String)
this constructor will create a PerformanceMeasurement object, there is no Measurement at this time

Method Index

 o end(long)
this method will record a start time for the measurement specified by the parameter measurement_id
 o 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
 o to_stream(PrintWriter)
this method will record a end time for the specified measurement_id

Variables

 o OK
 public static final int OK
possible return values of methods

 o WRONG_STATE
 public static final int WRONG_STATE

Constructors

 o Measurement
 public Measurement(String des)
this constructor will create a PerformanceMeasurement object, there is no Measurement at this time

Methods

 o 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

 o end
 public int end(long time)
this method will record a start time for the measurement specified by the parameter measurement_id

 o 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