home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / c / library / dos / grafik / fgl105 / 14-02.c < prev    next >
Encoding:
C/C++ Source or Header  |  1991-05-06  |  385 b   |  20 lines

  1. #include <fastgraf.h>
  2. #define ESC 27
  3.  
  4. main()
  5. {
  6.    unsigned long start, ticks;
  7.    unsigned char key, aux;
  8.  
  9.    start = fg_getclock();
  10.  
  11.    fg_getkey(&key,&aux);
  12.  
  13.    while (key != ESC) {
  14.       ticks = fg_getclock();
  15.       printf("%lu ticks since midnight.\n",ticks);
  16.       printf("%lu ticks since start of program.\n\n",ticks-start);
  17.       fg_getkey(&key,&aux);
  18.    }
  19. }
  20.