autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Portable (as possible) sub-second timers


From: Paul Smith
Subject: Portable (as possible) sub-second timers
Date: Sat, 5 Nov 2005 21:52:10 -0500

Hi all;

It doesn't seem that autoconf has any macros that provide for sub-second
timers.  Is there any agreed-upon standard for managing this?  Is
setitimer() the most portable option for sub-second timestamps?  Are
there known portability issues with it?

Should I check for usleep() if setitimer doesn't exist?  What about
nanosleep()?  I expect many systems would need to realtime library
(-lrt) linked to use nanosleep()?  Or not?


Any info appreciated!

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <address@hidden>           HASMAT: HA Software Mthds & Tools
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist
-------------------------------------------------------------------------------
        These are my opinions--Nortel takes no responsibility for them.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]