ExecutionTimeMeasurer

public final class ExecutionTimeMeasurer

Measurement of execution times of CloudSim’s methods.

Author:Anton Beloglazov

Methods

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()

getExecutionStartTime

static Long getExecutionStartTime(String name)

Gets the execution start time

Parameters:
  • name – the name of the method/process to get the execution start time
Returns:

the execution start time for the the given method/process

See also: .EXECUTION_START_TIMES

getExecutionStartTimes

static Map<String, Long> getExecutionStartTimes()

Gets the map of execution times.

Returns:the execution times map

See also: .EXECUTION_START_TIMES

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()