I thought specifing the lib directory was enough but I guess not.
Also, I knew about clock_gettime(), but forgot. Thanks for jarring
my memory. One caveat though, if I remember correctly, clock_gettime is
affected by changes in the time on the system so should’nt be used in a
program that might be running when the system time is changed. For
my purposes, though it would work as well as gettimeofday().
John Garvey wrote:
Rob Davidson <> email@example.com> > wrote:
I noticed that the gettimeofday() function prototype exists in
sys/time.h> but the watcom linker does not find it in the libaries for
QNX 4.2.5, Watcom compiler 10.6. Does anyone know if this function is
supported by QNX 4.2.5??
It’s in the “unix*.lib” library; … try linking with “-lunix”.
If not, does anyone know how to get the time of day clock for timing
less than a second? I need to do some timing analysis and need finer
resolutions than a second.
Refer to “clock_gettime()”.