How to get uptime ?

How to get qnx uptime ?

/how long system is running (in cmd line and c/c++ code);

“pidin info” gives you the boot time.

“pidin” source is online, so you can see how pidin did it.

From QNX documentation:

This structure contains fields “boot_time”

and “nsec” field