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
-
valid
- Flag indicating whether the time is a valid time or not
-
BenchmarkTime(long)
-
-
millis()
- Returns the time in milliseconds
-
secs()
- Returns the time in seconds
-
toLongString()
- Returns the time in seconds in formated way
Eg.
-
toString()
- Converts the time in seconds into string without any special formatting
valid
public boolean valid
- Flag indicating whether the time is a valid time or not
BenchmarkTime
public BenchmarkTime(long millis)
millis
public long millis()
- Returns the time in milliseconds
secs
public double secs()
- Returns the time in seconds
toLongString
public String toLongString()
- Returns the time in seconds in formated way
Eg. 28.6 secs
30.6 secs : **NOT VALID**
toString
public String toString()
- Converts the time in seconds into string without any special formatting
All Packages Class Hierarchy This Package Previous Next Index