home *** CD-ROM | disk | FTP | other *** search
/ Virtual Reality Madness / VRMAD96_ONE.ISO / virtek / libex / libex118.c < prev    next >
C/C++ Source or Header  |  1995-08-24  |  422b  |  19 lines

  1.   // Example: 118 from Library Reference
  2. #include "..\3D-Ware\dddware.h"
  3. #include  <stdio.h>
  4. long  this_time, first_time;
  5. short  main(void)
  6. {
  7.   dddInitKeybd();
  8.   dddInitTimer();
  9.   first_time = dddReadTimer();
  10.   while  (!dddkeycode)
  11.   {
  12.   this_time = dddReadTimer();
  13.   printf("Elapsed time is :- %ld seconds.\n",(this_time-first_time)/1179650);
  14.   }
  15.   dddRestoreTimer();
  16.   dddRestoreKeybd();
  17.   return 0;
  18. }
  19.