So I tried a quick test of that and and a simplified version for us that aren't wizards with regex yet
(I get the main idea of the regex though) and this is the config I used:
Code: Select all
[Rainmeter]
Update=1000
[measureCPU]
Measure=Plugin
Plugin=UsageMonitor
Alias=CPU
Name=Rainmeter
[measureGrossUpdates]
Measure=Calc
Formula=measureGrossUpdates + 1
[measureGrossCPU]
Measure=Calc
Formula=measureGrossCPU + measureCPU
[measureAverageCPU]
Measure=Calc
Formula=measureGrossCPU / measureGrossUpdates
[Meter]
Meter=String
This is the result of the above after leaving it for 1 hour of idle time with that and Yin's CPU measuring skins and my barebones 'suite' active:
AverageRainmeterCPU.png
measureAverageCPU was even lower initially, saw it at 0.005X before it caught up to my mouse actions. And that number represents a percent already, not the decimal of average CPU usage, so that's an average of about
0.005% CPU usage on idle, pretty cool (I didn't add in the appropriate range with
Min= and
Max=, only the standard UsageMonnitor shows the correct range). Yin, your config returned 0.00 initially and then rose to 0.01, which makes sense since you have it rounded and truncated.
After that I restarted Rainmeter, and tried spamming buttons on my controller/settings skin for about 2 minutes straight (could simulate 15 clicks/actions or so per second), and got 6.75% average CPU for my config and 6.68% for Yin's, but just switching to Yin's config in the About panel a second or two after reading the first number is probably enough to make it drop those hundredths, so I could make a skin comparing those in real time but I'm sure it would give numbers that basically match.
Then restarted Rainmeter once more, and just used the computer normally, pretty much up through writing this, and got 0.20973% average CPU for my config, and 0.21% for Yin's, again makes sense because of rounding/truncating.
And then just thought of an even easier one, using a high AverageSize on UsageMonnitor itself, tried 120 (two minutes with
Update=1000) of average computer usage:
Code: Select all
[Rainmeter]
Update=1000
[MeasureRainmeterCPU]
Measure=Plugin
Plugin=UsageMonitor
Alias=CPU
Name=Rainmeter
AverageSize=120
[Meter]
Meter=String
Before two minutes have elapsed, it has to slowly build up values, but at the end of the 120 updates
all three variants were between the upper edge of 0.28X% to lower edge 0.30X% average CPU, say 0.01% to 0.02% fluctuation, no pattern or lean of any particular one that I could see.
Just checked again, Yin and my first config shows 0.11X%, the my second config shows about 0.17%, so assuming the 0.11% is fairly accurate, this simplest skin is we'll say up to 0.1% off, perfectly fine for the normal user or even an attentive skin author. Edit: And they are measuring two close but different things, the first two read the average over the total time, the third is the moving average of a 120 update window.
And a faster update rate on any of these configs ex.:
Update=100 can get to a useable average much faster for most people who would use it in short bursts.
You do not have the required permissions to view the files attached to this post.