Process lifetime.

How to get lifetime of process with given pid?
Language: C
QNX 6.3.0 SP1