Hal Daume III hdaume at ISI.EDU
Mon Oct 27 09:46:52 EST 2003

You can use the timeout function

and simply wait for the exception.

or, if you require less precision, you could just loop and check the 
System.Time until a certain amount of time has elapsed.

Other than that, I don't think so.

On Mon, 27 Oct 2003, Sven Panne wrote:

> Just a short question: If I'm not mistaken, there is no way in the "base"
> package to sleep for a given amount of time in portable a way. Of course
> there is System.Posix.Unistd.sleep and System.Posix.Unistd.usleep in the
> "unix" package, but shouldn't we have a similar feature in the "base"
> libraries? Or have I overlooked something obvious?
> Cheers,
>     S.
> _______________________________________________
> Libraries mailing list
> Libraries at

 Hal Daume III                                   | hdaume at
 "Arrest this man, he talks in maths."           |

More information about the Libraries mailing list