home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Virtual Reality Madness
/
VRMAD96_ONE.ISO
/
virtek
/
libex
/
libex118.c
< prev
next >
Wrap
C/C++ Source or Header
|
1995-08-24
|
422b
|
19 lines
// Example: 118 from Library Reference
#include "..\3D-Ware\dddware.h"
#include <stdio.h>
long this_time, first_time;
short main(void)
{
dddInitKeybd();
dddInitTimer();
first_time = dddReadTimer();
while (!dddkeycode)
{
this_time = dddReadTimer();
printf("Elapsed time is :- %ld seconds.\n",(this_time-first_time)/1179650);
}
dddRestoreTimer();
dddRestoreKeybd();
return 0;
}