Re: Portable (as possible) sub-second timers

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

 



Paul Smith wrote:
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?

The tried-and-true method for the past 20-some years has been select() with no descriptor sets...

--
  -- Howard Chu
  Chief Architect, Symas Corp.  http://www.symas.com
  Director, Highland Sun        http://highlandsun.com/hyc
  OpenLDAP Core Team            http://www.openldap.org/project/


_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux