Mario Sergio Fujikawa Ferreira wrote:

#define timing_diffi(x,y) \
( \
	(double) ( ((x)->t.tv_sec - (y)->t.tv_sec) + \
		(double) ( \
				((x)->t.tv_nsec - (double) (y)->t.tv_nsec) * 4294967296.0 / 1e9 \
			) \
	) \
)
[skip]

printf("Avg getpid() time = %lld nsec\n", timing_diffi(&end,&start)/iters);

Please, please read `man 3 printf`. Consider using %f instead of %lld.


--
Lev Walkin
[EMAIL PROTECTED]


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to