cpu-time

How to go from CPU time to CPU utilization?

I'm trying to recognize a run away threads in my own application and close them for good before they render machine inaccessible. However, I can only get CPU time for the thread, that is limitation of API I'm using. Is there any way to evaluate CPU utilization from that data? I was thinking about comparing it to real time and if it is ...

CPU Process time using GetProcessTimes and FileTimeToSystemTime do not work in 64 bit win

So I am trying to measure CPU time. It works great on Win 32, but on 64 bit it says error LNK2019: unresolved external symbol __imp_GetProcessTimes referenced in function "unsigned int __cdecl getWINTime(void)" (?getWIN32Time@@YAIXZ) it has similar error for FileTimeToSystemTime error LNK2019: unresolved external symbol __imp_FileTi...