calculate the last cycle duration current time - last time cpu computation time concode_field_sep Long cycleDuration concode_elem_sep DecimalFormat twoDigit concode_field_sep Double getProcessCPUPower concode_elem_sep Double getProcessDiskPower
void function ( ) { PowerModel . cycleDuration = System . currentTimeMillis ( ) - Agent . lastCPUComputationTime ; Agent . lastCPUComputationTime = System . currentTimeMillis ( ) ; }