Peter Gerwinski wrote:
Hi, Raymond Wang,
you wrote:
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.
It is not.
What should I do in order for the compiler to recognize the clock command?
If `Clock' stands for what the name suggests, you can write your own one using the `Date' and `Time' routines. Please search the documentation for these words and `GetTimeStamp'.
These routines return real time.
If you want to get processor time (like clock() in C), try GetCPUTime instead (only available in recent GPC versions).
Frank