Problem with timer.

BlitzMax Forums/BlitzMax Beginners Area/Problem with timer.

I think you have to free the old timer before creating a new one.
No you don't.
Strict

Local timer:TTimer = CreateTimer(60)

Graphics 640 , 480
While Not KeyHit(Key_Escape)
	Cls
	DrawText TimerTicks(timer) , 10 , 10
	DrawText timer.toString(),10,20
	
	If KeyHit(KEY_SPACE) Then timer = CreateTimer(60)
	
	Flip
Wend
If you try this code you can see it creates a new timer each time.