Closed LukasFratzl closed 11 months ago
Yes it looks now definitely cleaner ... the Jiffies struct does a good job^^
Hey, I have something important to do on my job which has currently the highest priority, please if you find the changes useful, accept the pull request and make the edits yourself :)
I'm pretty sure you're faster making the above-mentioned fixes, if not you definitely need to wait 2 weeks, or longer depending on how long it takes on my side....
I will merge it as soon as I have the time to apply the fixes. Thank you for the contribution!
The old
currentClockSpeed_MHz()
sadly always returned the MaxClockSpeed, in my case I have an Intel CPU which is using Turbo Boost Technology which mean the Clock Speed sometimes goes above or below the MaxClockSpeed, these edits will take Turbo Boost into account...Supported per Thread CPU Utilization Percentage | Linux | Windows
For Windows, I used -> https://wutils.com/wmi/root/cimv2/win32_perfformatteddata_counters_processorinformation/#percentprocessorutility_properties It gives me perfect Utilization, I tested 3 ways and nothing comes close to this ... I added a MainThread function to get all Threads Usage Percentage Multi-Threaded, which is way faster ... For Linux is use /proc/stat -> https://stackoverflow.com/a/3017438 It's very fast and the same accurate as the Windows version, I checked the values in the resource viewer