i wrote it even before loops were implemented, to test my stack limit work-around.
the poor thing had been forgotten in my old_scripts folder for months.
until i found it today, and decided to update it and post here just for fun.
quoting TheQwerty:
Scripting can be so fun (and arguably entirely useless) sometimes..
Code: Select all
"Speed Test"
msg "Start speed test.<crlf><crlf>This takes 20 secs to complete<crlf>and will use a lot of CPU power.",1;
$total=0;
$done=1;
$sec=<date ss>;
while($done==1){ //wait 'till the next full second to start
if(<date ss>!=$sec){
$sec=<date ss>;
$done=0;}}
while($done<20){ //the test loop
if(<date ss>!=$sec){ //if the seconds has changed, update the timer values
$sec=<date ss>;
$done++;}
//status $total; //test speed of status bar messages
$total++;} //total iterations
$hz = ($total/20);
msg "$hz Hz ($total loops in 20 secs)";pretty good compared to my old cpu.
XYplorer Beta Club