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

2 posts in this topic

#1 ·  Posted (edited)

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

#2 ·  Posted (edited)

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.


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
This topic is now closed to further replies.