On Thu, Oct 27, 2011 at 9:07 PM, Lucio De Re <lu...@proxima.alt.za> 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. Any 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