Searched refs:procTime2 (Results 1 – 2 of 2) sorted by relevance
213 int64_t procTime2 = 0; in GetProcCpuUsage() local231 if ((procTime2 = GetProcOccupy(pid)) == OHOS::Sensors::ERROR) { in GetProcCpuUsage()236 return CHK_RATE(CPU_USAGE_MAX * (procTime2 - procTime1) / (totalTime2 - totalTime1)); in GetProcCpuUsage()
231 int64_t procTime2 = 0; in GetProcCpuUsage() local249 if ((procTime2 = GetProcOccupy(pid)) == RET_ERR) { in GetProcCpuUsage()254 return CHK_RATE(CPU_USAGE_MAX * (procTime2 - procTime1) / (totalTime2 - totalTime1)); in GetProcCpuUsage()