time()
Purpose
Get the current system tick count
Description
Returns the current system tick value in seconds
Syntax
result = time( )
Arguments
result current system tick value in seconds
Example
loop
clear()
printAt( 0, 0, time() )
wait( 3 )
printAt( 0, 1, time() )
wait( 3 )
update()
repeat
// wait for interval seconds
function wait( interval )
now = time()
end = now + interval
while end > now loop
update()
now = time()
repeat
return void
Associated Commands