Package com.randomnoun.common.timer
Class Benchmark.CheckpointList
java.lang.Object
com.randomnoun.common.timer.Benchmark.CheckpointList
- Enclosing class:
Benchmark
A class containing the checkpoints for a single benchmark
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAnnotation
(String annotation) Adds an annotation to this set.void
addCheckPoint
(String id) Adds a checkpoint to this set.get
(int n) Retrieve an individual checkpointiterator()
Return an iterator for the checkpoint listtoString()
Returns a string version of this set.
-
Constructor Details
-
CheckpointList
public CheckpointList()
-
-
Method Details
-
iterator
Return an iterator for the checkpoint list -
get
Retrieve an individual checkpoint -
addCheckPoint
Adds a checkpoint to this set. The checkpoint is stamped using the current system time. -
addAnnotation
Adds an annotation to this set. -
toString
Returns a string version of this set. Timestamps are returned using the format specified by the Benchmark class
-