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 newRecordedOperation
instance. -
Method Summary
Modifier and TypeMethodDescriptionint
getCount()
How many times the operation occurred.int
The number of parent operations.An (unique) identifier for the operation.double
The mean execution time in seconds for the operation.double
The 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 newRecordedOperation
instance.- 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.
-