On Sun, 2012-02-05 at 08:26 +0000, Bart Van Assche wrote: > On Fri, Feb 3, 2012 at 9:22 PM, Magnus Fromreide > <[email protected]> wrote: > * I dislike that netsnmp_get_monotonic_clock might return > gettimeofday but I suppose that there isn't much to do > about > that but maybe it is possible to get a better name for > the > function? One could do heroics with clock and assume > that > machines that lack clock_gettime have a stable clock > tick but I > do not think it isn't worth the effort. > > One possible approach is to use times() as a fallback instead of > gettimeofday() for systems that do not have CLOCK_MONOTONIC.
Yes, but as I said, I do not think it is worth the effort - any reasonable system should provide CLOCK_MONOTONIC. /MF ------------------------------------------------------------------------------ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
