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
-- The Information contained in this E-Mail and any subsequent correspondence is private and is intended solely for the intended recipient(s). For those other than the recipient any disclosure, copying, distribution, or any action taken or omitted to be taken in reliance on such information is prohibited and may be unlawful.
participants (1)
-
Wren Lee