cloudsim-plus-master/cloudsim-plus-master/cloudsim-plus-testbeds/src/main/java/org/cloudsimplus/sla/SlaMetricsWithoutNetworkExample.java
private double taskTimeCompletionCloudletAverage(List<Cloudlet> cloudlets) {

        double taskTimeCompletion = 0, quant =0;
        for (Cloudlet cloudlet : cloudlets) {
            taskTimeCompletion += cloudlet.getFinishTime() - cloudlet.getLastDatacenterArrivalTime();
            quant = cloudletList.size();
        }
        return taskTimeCompletion/quant;

    }
/**
     * Shows the TaskTimeCompletion of cloudlets
     *
     * @param cloudlets to calculate the TaskTimeCompletion
     * @return taskTimeCompletionCloudlet
     */
Shows the TaskTimeCompletion of cloudlets
@param cloudlets to calculate the TaskTimeCompletion
@return taskTimeCompletionCloudlet
Shows the TaskTimeCompletion of cloudlets @param cloudlets to calculate the TaskTimeCompletion @return taskTimeCompletionCloudlet
private double taskTimeCompletionCloudletAverage(List<Cloudlet> cloudlets) {
        double taskTimeCompletion = 0, quant =0;
        for (Cloudlet cloudlet : cloudlets) {
            taskTimeCompletion += cloudlet.getFinishTime() - cloudlet.getLastDatacenterArrivalTime();
            quant = cloudletList.size();
        }
        return taskTimeCompletion/quant;
    }
private double taskTimeCompletionCloudletAverage ( List < Cloudlet > cloudlets ) { double taskTimeCompletion = 0 , quant = 0 ; for ( Cloudlet cloudlet : cloudlets ) { taskTimeCompletion += cloudlet . getFinishTime ( ) - cloudlet . getLastDatacenterArrivalTime ( ) ; quant = cloudletList . size ( ) ; } return taskTimeCompletion / quant ; }
Shows the TaskTimeCompletion of cloudlets
 @param cloudlets to calculate the TaskTimeCompletion
 @return taskTimeCompletionCloudlet
Shows the TaskTimeCompletion of cloudlets @param cloudlets to calculate the TaskTimeCompletion @return taskTimeCompletionCloudlet