Is it OK to use CLOCK_PROCESS_CPUTIME_ID on QNX 6.3 ?

Hello :astonished: ,

is it ok to use the cpu time timers on qnx 6.3, with the clock id CLOCK_PROCESS_CPUTIME_ID, in order to monitor the execution time ?

Does it work well ??

clock_gettime(CLOCK_PROCESS_CPUTIME_ID, tp )

Thank you !!

I’ve tested myself, comparing results with CLOCK_REALTIME (the absolute time), looking what happen generating interruptions on the serial port (putting datas on it, at 115200bps).

The results is that it in this case it’s the same to use CLOCK_REALTIME or CLOCK_PROCESS_CPUTIME. The intervals of time calculated are the same, and the variations are the same (they both give the same values without interruptions, and with interruptions, while really only CLOCK_REALTIME should change, as in theory the cputime for this process should not change). Am I wrong ???

Best regards,

Julián