Getting the ticksize nondestructively: how?

I need to read the current ticksize with nanosecond precision
nondestructively. How can I do this if the current ticksize is not a
standard size (.5, 1, 2, 5, 10, … milliseconds)?

Tony.

Tony <mts.spb.suxx@mail.ru> wrote:

I need to read the current ticksize with nanosecond precision
nondestructively. How can I do this if the current ticksize is not a
standard size (.5, 1, 2, 5, 10, … milliseconds)?

Are you talking at the command line, or in code?

At the commandline, “ticksize -e” will report the (exact) current
ticksize.

From a program, I think qnx_ticksize() is the function to get/set
the ticksize – but I’m not actually at work where I could verify.
(I expect qnx_ticksize() takes two pointers, an old and a new, if you
pass the address of something for the old, and NULL for the new, it
will query without setting.)

-David

David Gibbs
QNX Training Services
dagibbs@qnx.com