[Shootout-list] Timing resolution? libbsd-resource-perl

Isaac Gouy igouy2@yahoo.com
Wed, 11 Aug 2004 14:21:43 -0700 (PDT)


> Well, I still don't know what time-resolution is provided by Perl
> times() or the libbsd times().

The C sys/times function is reporting 100 clicks per second on Gentoo
Linux, maybe that's different on the test machine.

So we're good for timings > 0.1s


#include <sys/times.h>
#include <unistd.h>
#include <stdio.h>

main(){        
   printf("%d\n", (sysconf(_SC_CLK_TCK)));             
}


		
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail