I have this routine that will extract the processor time on a Linux based PC. It's written in C but I'm sure it could be converted, or at least linked in.
extern __inline__ unsigned long long int rdtsc() { unsigned long long int x; __asm__ volatile (".byte 0x0f, 0x31" : "=A" (x)); return x; }
This routine will return the number of processor cycles since system boot, an in order to make any sense of it you need to know your system CPU clock speed.
Regards, Lee.
-----Original Message----- From: Raymond Wang [SMTP:rayw@wireless.stanford.edu] Sent: 03 June 2000 11:23 To: gpc@gnu.de Subject: URGENT: Pascal Clock
Hi,
When I compile my pascal code with GNU Pascal's compiler, I get undeclared identifier `Clock' when I reference it in my code:
e.g. y := clock/1000-y1
I thought Clock is a predefined global function. What should I do in order for the compiler to recognize the clock command?
Thanks! Ray
Raymond Wang Department of Electrical Engineering Stanford University
www.stanford.edu/~rayw