createtimer.bmx 245 B

123456789101112131415
  1. Rem
  2. The following BlitzMax program prints a new line to the console 5 times a second.
  3. End Rem
  4. ' testtimer.bmx
  5. SuperStrict
  6. Local t:TTimer = CreateTimer(5)
  7. Local frame:Int = 0
  8. For Local i:Int = 1 To 10
  9. WaitTimer(t)
  10. Print frame
  11. frame:+1
  12. Next