I have programmed an interrupt handle program in Pentium III866 cpu (QNX 6.1.0+PatchA).
In the interrupt handle function ,I use the ClockCycles() function to get
count(something relate to the time),it works ok(no crash).it seems safe to
use in interrupt handler in Pentium CPU .
I search the docs on qnx web about ClockCycles() for qnx6.1.0,it says
that the function is safety in interrupt handler.
And it says that it depends on the cpu style—“x86 has the RDTSC
Now we will select new computer which has “CPU Celeron 800” to running the same program(interrupt program).I don’t know whether it is safe to use ClockCycles() in interrupt handler on that cpu style,if I still use
Qnx6.1.0+PatchA. By the way, if the cpu is AMD ,is it safe to to use ClockCycles() in interrupt handler?
In Qnx6.2.1 online help,it said that the function ClockCycles() is not
safe in interrupt handler.
If I use the new system Qnx6.2.x ,it seems that we can’t use the
ClockCycles() in interrupt handler. Does it really not safe to use
ClockCycles() in interrupt handler on Pentium or Celeron or AMD cpu?
If I can’t use ClockCycles() in interrupt handler,how to program to get
the current time of the interrupt in interrupt handler?
Somebody says that it can use “syspage” about time to record the system time .But I don’t know how?