public class TimeKeeper extends Object implements Serializable
Simulating mode.| Modifier and Type | Field and Description |
|---|---|
private Map<Object,RudimentaryStats> |
keytimes
A table that records basic statistical timing data on commands.
|
private static long |
serialVersionUID |
| Constructor and Description |
|---|
TimeKeeper() |
| Modifier and Type | Method and Description |
|---|---|
RudimentaryStats |
addTime(Object key,
double time)
We add a regular execution time for a command specified with a command
object.
|
boolean |
equals(Object obj) |
RudimentaryStats |
getTime(Object key)
A driver in simulation mode may ask on the average execution time of a
certain command.
|
int |
hashCode() |
String |
toString() |
private static final long serialVersionUID
private final Map<Object,RudimentaryStats> keytimes
public RudimentaryStats addTime(Object key, double time)
key - time - public RudimentaryStats getTime(Object key)
key - An ID for the command