polserver/testsuite/pol/scripts/busyloop.src
turleypol e7bcb662f5
Testsystem performance (#565)
* add timing information per test function/script/pkg

* bypass script scheduler logic for our testsystem with a endlessloop
due to faster execution time the wait time between doubleclicks needs to
be disabled

* try to sync lift/drop tests
2023-11-16 07:52:02 +01:00

15 lines
394 B
Text

/*
busyloop for our scriptscheduler
The scheduler, if no script has to run, sleeps until the next
script is scheduled for wakeup.
For our testsystem that is not what we want, since almost no scripts are running the delays are quite huge.
So trick the scheduler by having this script run endless with a minimum of delay
*/
use os;
print("starting busyloop");
while (1)
sleepms(1);
endwhile