For those that are interested, here is the solution that I think I'm
going to use with regards to a pollable clock that doesn't rely on
the time of day stuff.
The times(2) call (thanks Tom) is the number of clock ticks that have
elapsed since the system has been up. Now, the man pages suggest
dividing this by the constant CLOCKS_PER_SEC with the Caveat:
ANSI C. POSIX requires that CLOCKS_PER_SEC equals 1000000
independent of the actual resolution.
This was not ideal. So I pulled out the good 'ole Stevens Advanced
Porgramming in the UNIX Environment ... which pointed me at the
sysconf(3) function. From this, I can get the system defined
clock ticks/second.
Both functions appear to be POSIX compliant.
Thanks to all for your various suggestions.
--
"Things are fine, the upcoming semester approaches like a brick wall
and we're in a 1962 Corvair with no brakes." - Paul Sand
Cole Tuininga
Network Admin
Code Energy, Inc
[EMAIL PROTECTED]
(603) 766-2208
PGP Key ID: 0x43E5755D
**********************************************************
To unsubscribe from this list, send mail to
[EMAIL PROTECTED] with the following text in the
*body* (*not* the subject line) of the letter:
unsubscribe gnhlug
**********************************************************