Class ElapsedTimeCollector
java.lang.Object
org.moeaframework.analysis.runtime.ElapsedTimeCollector
- All Implemented Interfaces:
- Collector
Collects the elapsed execution time of an algorithm.
- 
Constructor SummaryConstructorsConstructorDescriptionConstructs a collector for recording the elapsed execution time of an algorithm.
- 
Method SummaryModifier and TypeMethodDescriptionReturns a new instance of this collector which has been attached to the specified object as identified by the attach point returned throughCollector.getAttachPoint().voidcollect(ResultEntry result) Collects the requested information from the object, storing the data to the given result.Returns the attach point describing where this collector is attached.static doublegetElapsedTime(ResultEntry result) Reads the elapsed time value from the result.
- 
Constructor Details- 
ElapsedTimeCollectorpublic ElapsedTimeCollector()Constructs a collector for recording the elapsed execution time of an algorithm.
 
- 
- 
Method Details- 
collectDescription copied from interface:CollectorCollects the requested information from the object, storing the data to the given result. This method must only be invoked after this collector has been attached to an appropriate object.
- 
getAttachPointDescription copied from interface:CollectorReturns the attach point describing where this collector is attached. The matched object should be unique.- Specified by:
- getAttachPointin interface- Collector
- Returns:
- the attach point describing where this collector is attached
 
- 
attachDescription copied from interface:CollectorReturns a new instance of this collector which has been attached to the specified object as identified by the attach point returned throughCollector.getAttachPoint().
- 
getElapsedTimeReads the elapsed time value from the result.- Parameters:
- result- the result
- Returns:
- the elapsed time value.
 
 
-