Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Feb 2008 15:58:42 +0530
From:      Sharad Chandra <sharadc@in.niksun.com>
To:        freebsd-hackers@freebsd.org
Subject:   usleep
Message-ID:  <200802221558.42443.sharadc@in.niksun.com>

next in thread | raw e-mail | index | archive | help
Hi Guys,

	Does usleep work for you? i just saw it is implemented over nanosleep which 
passes a struct timeval to "select".

on my system, one of instance for usleep and select sleep value.

provided
(sec).(microsec) => select (sleep) usleep (sleep)
0.000000 => select: 0.000004 usleep: 0.000008
0.000001 => select: 0.002199 usleep: 0.001758
0.000002 => select: 0.004125 usleep: 0.001688
0.000003 => select: 0.005546 usleep: 0.001999
0.000004 => select: 0.006645 usleep: 0.002045
0.000005 => select: 0.001374 usleep: 0.002034
0.000006 => select: 0.002480 usleep: 0.001996
0.000007 => select: 0.006715 usleep: 0.001998
0.000008 => select: 0.002297 usleep: 0.001662
0.000009 => select: 0.002635 usleep: 0.001999
0.000010 => select: 0.003717 usleep: 0.001988

--

Thanks
Sharad Chandra



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200802221558.42443.sharadc>