home *** CD-ROM | disk | FTP | other *** search
/ C++ Games Programming / CPPGAMES.ISO / fgl / fglight / exc.arj / TEMP / 16-03.C < prev    next >
Text File  |  1995-01-20  |  549b  |  29 lines

  1. #include <fastgraf.h>
  2. #include <stdio.h>
  3.  
  4. void main(void);
  5.  
  6. void main()
  7. {
  8.    int i;
  9.    int units_per_tick;
  10.    unsigned int seconds;
  11.    unsigned char key, aux;
  12.  
  13.    fg_initpm();
  14.    seconds = 0;
  15.    printf("Benchmarking system speed...\n");
  16.    units_per_tick = fg_measure();
  17.    printf("Benchmark completed.\n\n");
  18.  
  19.    do
  20.    {
  21.       for (i = 0; i < 91; i++)
  22.          fg_stall(units_per_tick);
  23.       seconds += 5;
  24.       printf("%u seconds have elapsed.\n",seconds);
  25.       fg_intkey(&key,&aux);
  26.    }
  27.    while (key+aux == 0);
  28. }
  29.