3 #include "exec/types.h"
4 #include "intuition/intuition.h"
8 struct IntuitionBase *IntuitionBase = NULL;
10 fDATIME(X,Y)int *X, *Y; {
11 static int GOTX = 0, GOTY;
13 IntuitionBase = (struct IntuitionBase *)
14 OpenLibrary("intuition.library", INTUITIONREV);
15 if (IntuitionBase == NULL) {
16 printf("Can't open library.\n");
19 CurrentTime(&GOTX, &GOTY);
20 CloseLibrary(IntuitionBase);
23 if(GOTY >= 1000000) {GOTX += 1; GOTY -= 1000000;}
33 fDATIME(X,Y)long *X, *Y; {
36 /* it would be even better if the two numbers were totally
37 * unrelated, like if 'time' returned 64 bits of data */
44 void fDATIME(X,Y)long *X, *Y; {
46 gettimeofday(&now, 0);