public class ExecutionTimeRecorderIgnore extends ExecutionTimeRecorder
ExecutionTimeRecorder
that is a simple placeholder that does
nothing.Constructor and Description |
---|
ExecutionTimeRecorderIgnore() |
Modifier and Type | Method and Description |
---|---|
static ExecutionTimeRecorder |
instance()
Singleton instance.
|
boolean |
isOperationAlreadyRecorded(String operationIdentifier)
Has a particular operation already been recorded?
|
long |
measureTime(boolean start,
String... operationIdentifiers)
Indicates
operationIdentifier is being recorded, and returns the current clock
timestamp. |
RecordedExecutionTimes |
recordedTimes()
The execution-times that have been recorded.
|
void |
recordExecutionTime(String operationIdentifier,
long millis)
Records the execution-time of a particular operation.
|
recordExecutionTime, recordExecutionTime, recordExecutionTimeUnchecked, recordTimeDifferenceBetween
public static ExecutionTimeRecorder instance()
public void recordExecutionTime(String operationIdentifier, long millis)
ExecutionTimeRecorder
recordExecutionTime
in class ExecutionTimeRecorder
operationIdentifier
- a string uniquely identifying the operation.millis
- how long the operation took in milliseconds.public RecordedExecutionTimes recordedTimes()
ExecutionTimeRecorder
recordedTimes
in class ExecutionTimeRecorder
RecordedExecutionTimes
that describes the execution-times.public boolean isOperationAlreadyRecorded(String operationIdentifier)
ExecutionTimeRecorder
isOperationAlreadyRecorded
in class ExecutionTimeRecorder
operationIdentifier
- a string uniquely identifying the operation.public long measureTime(boolean start, String... operationIdentifiers)
ExecutionTimeRecorder
operationIdentifier
is being recorded, and returns the current clock
timestamp.measureTime
in class ExecutionTimeRecorder
start
- true, if this time indicates the start of an operation. false, if it only
describes the end.operationIdentifiers
- all possible identifiers that may subsequently be used to record
an end-time for this operation.Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.