cloudsim-plus-master/cloudsim-plus-master/cloudsim-plus-testbeds/src/main/java/org/cloudsimplus/migration/VmMigrationWhenCpuMetricIsViolatedExample.java
private void cpuUtilization(List<Cloudlet> cloudlet) {
        double cpuTime = 0;
        for (Cloudlet cloudlets : cloudlet) {
            cpuTime += cloudlets.getActualCpuTime();
        }
        Log.printFormattedLine("\n #Cpu utilization -> %f", (cpuTime * 100) / 100);
    }
/**
     * Shows the cpu utilization
     *
     * @param cloudlet to calculate the utilization
     * @return cpuUtilization
     */
Shows the cpu utilization
@param cloudlet to calculate the utilization
@return cpuUtilization
Shows the cpu utilization @param cloudlet to calculate the utilization @return cpuUtilization
private void cpuUtilization(List<Cloudlet> cloudlet) {
        double cpuTime = 0;
        for (Cloudlet cloudlets : cloudlet) {
            cpuTime += cloudlets.getActualCpuTime();
        }
        Log.printFormattedLine("\n #Cpu utilization -> %f", (cpuTime * 100) / 100);
    }
private void cpuUtilization ( List < Cloudlet > cloudlet ) { double cpuTime = 0 ; for ( Cloudlet cloudlets : cloudlet ) { cpuTime += cloudlets . getActualCpuTime ( ) ; } Log . printFormattedLine ( "\n #Cpu utilization -> %f" , ( cpuTime * 100 ) / 100 ) ; }
Shows the cpu utilization
 @param cloudlet to calculate the utilization
 @return cpuUtilization
Shows the cpu utilization @param cloudlet to calculate the utilization @return cpuUtilization