Jump to content
Violence

How to get thread's cycle time and CPU load?

Recommended Posts

Hi all.

Im' trying to make small script which would show process thread's CPU load and (or) cycle times. I use QueryThreadCycleTime function of kernel32.dll, but it returns wrong data. I mean, this values don't match real process's preferences from ProcessExplorer.

This function sometimes returns negative values, but how can that be? Please, if it is possible to get CPU load of process threads, or get real cycle times - help me! 

Here is my script and screenshot of returning data.

 

 

Edited by Jos
removed code and images

Share this post


Link to post
Share on other sites

Seems you still haven't read our forumrules, this time about not opening a topic on the same subject that was closed before.

Let's call this strike 2.

Jos

Edited by Jos

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

×
×
  • Create New...