Class ExecutionTimeMeasurer

java.lang.Object
org.cloudbus.cloudsim.util.ExecutionTimeMeasurer

public final class ExecutionTimeMeasurer extends Object
Measurement of execution times of CloudSim's methods.
Since:
CloudSim Toolkit 3.0
Author:
Anton Beloglazov
  • Method Details

    • start

      public static void start(String name)
      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

      public static double end(String name)
      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()