Hi
Porting my app from QNX4.24 (used Watcom) to QNX6.0.1, I found a
clock_getres() but no clock_setres(). Going back to the old manuals, I
found that clock_setres() wasn’t POSIX. So it gone now??
If yes, any alternatives??
I’m on an x86 platform and want my clock res down to a milli second.
Thanks,
Santosh
Santosh Patil <sans@ieee.org> wrote:
: Hi
: Porting my app from QNX4.24 (used Watcom) to QNX6.0.1, I found a
: clock_getres() but no clock_setres(). Going back to the old manuals, I
: found that clock_setres() wasn’t POSIX. So it gone now??
: If yes, any alternatives??
: I’m on an x86 platform and want my clock res down to a milli second.
According to the QNX 4 → QNX 6 Migration Guide (which for some reason
wasn’t shipped with QNX 6, but which you can find on the QDN website),
the equivalent function is ClockPeriod().
Steve Reid stever@qnx.com
TechPubs (Technical Publications)
QNX Software Systems
That was quick!
Thanks, should’ve gone thru the migration utlitity!
Steve Reid wrote:
Santosh Patil <> sans@ieee.org> > wrote:
: Hi
: Porting my app from QNX4.24 (used Watcom) to QNX6.0.1, I found a
: clock_getres() but no clock_setres(). Going back to the old manuals, I
: found that clock_setres() wasn’t POSIX. So it gone now??
: If yes, any alternatives??
: I’m on an x86 platform and want my clock res down to a milli second.
According to the QNX 4 → QNX 6 Migration Guide (which for some reason
wasn’t shipped with QNX 6, but which you can find on the QDN website),
the equivalent function is ClockPeriod().
Steve Reid > stever@qnx.com
TechPubs (Technical Publications)
QNX Software Systems
“Santosh Patil” <sans@ieee.org> wrote in message
news:3C5EFAEE.EFBCBF66@ieee.org…
That was quick!
Thanks, should’ve gone thru the migration utlitity!
Steve Reid wrote:
Santosh Patil <> sans@ieee.org> > wrote:
: Hi
: Porting my app from QNX4.24 (used Watcom) to QNX6.0.1, I found a
: clock_getres() but no clock_setres(). Going back to the old manuals, I
: found that clock_setres() wasn’t POSIX. So it gone now??
: If yes, any alternatives??
: I’m on an x86 platform and want my clock res down to a milli second.
According to the QNX 4 → QNX 6 Migration Guide (which for some reason
wasn’t shipped with QNX 6, but which you can find on the QDN website),
the equivalent function is ClockPeriod().
Check also ClockCycle, if use on Pentium and up will give you precision
down to the
frequency of the CPU.
Steve Reid > stever@qnx.com
TechPubs (Technical Publications)
QNX Software Systems