Jump to content
Violence

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

Recommended Posts

Violence

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
Jos

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

Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


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

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.