Package org.anchoranalysis.core.time
Class RecordedExecutionTimes.RecordedOperation
Object
RecordedOperation
- Enclosing class:
RecordedExecutionTimes
A particular type of operation that has been recorded (en aggregate).
-
Constructor Summary
ConstructorsConstructorDescriptionRecordedOperation(String operationIdentifier, int numberParentOperations, double meanExecutionTime, double sumExecutionTime, int count) Creates a newRecordedOperationinstance. -
Method Summary
Modifier and TypeMethodDescriptionintgetCount()How many times the operation occurred.intThe number of parent operations.An (unique) identifier for the operation.doubleThe mean execution time in seconds for the operation.doubleThe total summed execution time in seconds for the operation.
-
Constructor Details
-
RecordedOperation
public RecordedOperation(String operationIdentifier, int numberParentOperations, double meanExecutionTime, double sumExecutionTime, int count) Creates a newRecordedOperationinstance.- Parameters:
operationIdentifier- An (unique) identifier for the operation.numberParentOperations- The number of parent operations. Zero if there are no parents.meanExecutionTime- The mean execution time in milliseconds for the operation.sumExecutionTime- The total summed execution time in milliseconds for the operation.count- How many times the operation occurred.
-
-
Method Details
-
meanExecutionTimeSeconds
public double meanExecutionTimeSeconds()The mean execution time in seconds for the operation.- Returns:
- the mean execution time.
-
sumExecutionTimeSeconds
public double sumExecutionTimeSeconds()The total summed execution time in seconds for the operation.- Returns:
- the mean execution time.
-
getOperationIdentifier
An (unique) identifier for the operation. -
getNumberParentOperations
public int getNumberParentOperations()The number of parent operations. Zero if there are no parents. -
getCount
public int getCount()How many times the operation occurred.
-