Package org.cloudbus.cloudsim.util
Class ExecutionTimeMeasurer
java.lang.Object
org.cloudbus.cloudsim.util.ExecutionTimeMeasurer
Measurement of execution times of CloudSim's methods.
- Since:
- CloudSim Toolkit 3.0
- Author:
- Anton Beloglazov
-
Method Summary
-
Method Details
-
start
Starts measuring the execution time of a method/process. Usually this method has to be called at the first line of the method that has to be its execution time measured.- Parameters:
name
- the name of the method/process being measured.- See Also:
-
getExecutionStartTimes()
-
end
Finalizes measuring the execution time of a method/process.- Parameters:
name
- the name of the method/process being measured.- Returns:
- the time the method/process spent in execution (in seconds)
- See Also:
-
getExecutionStartTimes()
-