createtimer.bmx 194 B

1234567891011121314
  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. t=createtimer(5)
  6. frame=0
  7. for i=1 to 10
  8. waittimer(t)
  9. print frame
  10. frame:+1
  11. next