From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: Date: Thu, 27 Oct 2011 21:12:46 -0700 Message-ID: From: ron minnich To: lucio@proxima.alt.za, Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [9fans] nanosleep()? Topicbox-Message-UUID: 3b7921f4-ead7-11e9-9d60-3106f5b1d025 On Thu, Oct 27, 2011 at 9:07 PM, Lucio De Re wrote: > In porting the prof command from the Go distribution (src/cmd/prof), > absence of the nanosleep() function seems to be the final stumbling > block, at least for compilation purposes. =A0Any suggestions on how to > implement it? well, it is unlikely to say the least that the OSes we have will let you sleep for precisely one nanosecond. I'd be surprised if they even hit a microsecond reliably ... For a first pass, you could create a nanosleep for plan 9 that rounds to milliseconds and then use sleep() ron