Lines Matching defs:kFreq
503 const UInt32 kFreq = 10000000;
504 UInt64 sec = val / kFreq;
507 UInt32 ms = (UInt32)(val - (sec * kFreq)) / (kFreq / 1000);
671 static void PrintTime(const char *s, UInt64 val, UInt64 total_us, UInt64 kFreq)
678 if (kFreq == 0)
685 sec = val / kFreq;
686 ms = (UInt32)((val - (sec * kFreq)) * 1000 / kFreq);
698 if (kFreq == 0)
706 if (m == 0 || kFreq == 0)
709 kMaxVal / kFreq > total_us)
715 if (kFreq > total_us)
716 kFreq >>= 1;
720 const UInt64 total = kFreq * total_us;
734 const UInt64 kFreq = (UInt64)sysconf(_SC_CLK_TCK);
735 PrintTime("Kernel ", (UInt64)t.tms_stime, totalTime, kFreq);
736 PrintTime("User ", (UInt64)t.tms_utime, totalTime, kFreq);
737 PrintTime("Process", (UInt64)t.tms_utime + (UInt64)t.tms_stime, totalTime, kFreq);