home *** CD-ROM | disk | FTP | other *** search
/ C++ Games Programming / CPPGAMES.ISO / fgl / fglight / exbas.arj / TEMP / 16-03.BAS < prev    next >
BASIC Source File  |  1995-01-20  |  427b  |  24 lines

  1. REM $INCLUDE: 'fastgraf.bi'
  2.  
  3. DEFINT A-Z
  4.  
  5. DIM KeyCode AS STRING*1
  6. DIM AuxCode AS STRING*1
  7.  
  8. Seconds& = 0
  9. PRINT "Benchmarking system speed..."
  10. UnitsPerTick = FGmeasure
  11. PRINT "Benchmark completed."
  12. PRINT
  13.  
  14. DO
  15.    FOR I = 1 TO 91
  16.       FGstall UnitsPerTick
  17.    NEXT
  18.    Seconds& = Seconds& + 5
  19.    PRINT Seconds&; "seconds have elapsed."
  20.    FGintkey KeyCode, AuxCode
  21. LOOP WHILE ASC(KeyCode)+ASC(AuxCode) = 0
  22.  
  23. END
  24.