sleeping

John Meacham john at repetae.net
Mon Oct 27 13:26:30 EST 2003


On Mon, Oct 27, 2003 at 06:44:40PM +0100, 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?

System.system("sleep 4")

should be mostly portable. not sure if there is an equivalant thing to
run on windows...

-- 
---------------------------------------------------------------------------
John Meacham - California Institute of Technology, Alum. - john at foo.net
---------------------------------------------------------------------------


More information about the Libraries mailing list