Rob,
MESSAGEBOX() does not require a value to be converted to a string, and would make no difference to the test, since that conversion would take place AFTER the CPUSPEED() function would have already run. I would only need ot convert it to a string for MESSAGEBOX() If I wanted to append text to it like:
MESSAGEBOX("Your CPU Speed is: "+ALLTRIM(STR(CPUSPEED(),15,8)))
Best Regards,
Scott
"Everything should be made as simple as possible, and no simpler."
I don't know if its the case but laptops have an energy saving mode that somethimes slows down the processor in order to save energy.
Perhaps that is what you're seeing on your laptop...
Have tried it on my Home PC P4 1.8Ghz machine now... I get some variance (from 1817 to 1875) with both Messagebox and ? but never below the 1.8Ghz range, and a little CPU utilization I can understand... the laptop thing is very curious though.In any case, still a handy thing to have around. When I got variance of 1.4 to 1.7 it's still generally good enough to test "Is this PC fast enough to run my application". Will play around with more PCs and see what kind of response I get.
Thanks for this handy little FLL.
Best Regards,
Scott
"Everything should be made as simple as possible, and no simpler."
Thank you very much for posting the most useful fll.
The next step in making a comprehensive 'performance indicator' may be to test the hard drive read/write speed ,the processor type and installed RAM - as CPU frequencies are only one part of the equation.
The intention would be to warn users of older PCs that processing time may be extended.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.