All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class spec.harness.BenchmarkTime

spec.harness.BenchmarkTime

public class BenchmarkTime
This class is used for storing the benchmark run time information. The harness collects the benchmark run data like Runtime, IOTime etc. The time is calculated by taking the time samples at the starting and ending of the benchamrk. The difference between the two values gives the time spent in benchmark in milli seconds. This class becomes handy in storing the time and converting the time to seconds


Variable Index

 o valid
Flag indicating whether the time is a valid time or not

Constructor Index

 o BenchmarkTime(long)

Method Index

 o millis()
Returns the time in milliseconds
 o secs()
Returns the time in seconds
 o toLongString()
Returns the time in seconds in formated way Eg.
 o toString()
Converts the time in seconds into string without any special formatting

Variables

 o valid
 public boolean valid
Flag indicating whether the time is a valid time or not

Constructors

 o BenchmarkTime
 public BenchmarkTime(long millis)

Methods

 o millis
 public long millis()
Returns the time in milliseconds

 o secs
 public double secs()
Returns the time in seconds

 o toLongString
 public String toLongString()
Returns the time in seconds in formated way Eg. 28.6 secs 30.6 secs : **NOT VALID**

 o toString
 public String toString()
Converts the time in seconds into string without any special formatting


All Packages  Class Hierarchy  This Package  Previous  Next  Index