Simplest way to setup a timer ?

Blitz3D Forums/Blitz3D Beginners Area/Simplest way to setup a timer ?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

This is really too simple for a seperate function
endtime should be global

To reset the timer
endtime=Millisecs()+130000

To diplay the timer
Print (endtime-Millisec())/1000

To check the timer
If endtime<Millisecs() Then
;do the thing you need when timer reach 0
End If