@Mobiius,
The timer is in seconds, and returns a float.
So if timer() - StartTime# = 3.0 that's 3 seconds.
if timer() - StartTime# = 0.5 that's 500 milliseconds.
NOTHING in AppGameKit updates, unless you use the Sync() command. That includes the timer().
So,
+ Code SnippetStartTime# = timer()
do
if timer() - StartTime# => 5.0 then exit
loop
Will run forever.
+ Code SnippetStartTime# = timer()
do
if timer() - StartTime# => 5.0 then exit
sync()
loop
This will exit after 5 seconds.
Everything is relying on sync(). Even keyboard, button, touch, and accelerometer input.