Re: [PATCH] usleep, sleep(num)

2002-07-23 Thread Steve Purkis
On Tue, 23 Jul 2002, Aldo Calpini wrote: > Nicholas Clark wrote: > > Does Microsoft give you (well, us) a select() implementation that > > really does honour the microsecond field of the struct timeval > > it's passed? > > AFAIK, microseconds are honoured only on sockets, not on filehandles. I'

Re: [PATCH] usleep, sleep(num)

2002-07-23 Thread Aldo Calpini
Nicholas Clark wrote: > Does Microsoft give you (well, us) a select() implementation that > really does honour the microsecond field of the struct timeval > it's passed? AFAIK, microseconds are honoured only on sockets, not on filehandles. > I seem to remember reading somewhere that the most por

Re: [PATCH] usleep, sleep(num)

2002-07-23 Thread Nicholas Clark
On Tue, Jul 23, 2002 at 09:15:43AM -0500, Steve Purkis wrote: > Yeah - I've had a look at this and came to a similar conclusion... > but from the other end, just to be different :) -- unfortunately MS' > Sleep() doesn't give you to-the-microsecond control, but i figure * 1000 > to get milliseconds

Re: [PATCH] usleep, sleep(num)

2002-07-23 Thread Steve Purkis
On Tue, 23 Jul 2002, Aldo Calpini wrote: > Dan Sugalski wrote: > > I like this, and want it to go in--I think it's a capability > > we should provide. However... Until it works on Win32 we need > > to wait. Can someone running a Win box grab this and get a win > > version going? When we have that

Re: [PATCH] usleep, sleep(num)

2002-07-23 Thread Aldo Calpini
Dan Sugalski wrote: > I like this, and want it to go in--I think it's a capability > we should provide. However... Until it works on Win32 we need > to wait. Can someone running a Win box grab this and get a win > version going? When we have that, this can get committed. I'm a little late on this

Re: [PATCH] usleep, sleep(num)

2002-07-15 Thread Dan Sugalski
At 5:24 AM -0500 7/15/02, Steve Purkis wrote: >On Sun, 14 Jul 2002, Dan Sugalski wrote: > >> At 9:36 PM -0500 7/13/02, Steve Purkis wrote: >> >Hi, >> > >> >I was inspired by Time::HiRes to create 2 new simple ops for parrot: >> >usleep(int), and sleep(num), to behave a bit more like the float

Re: [PATCH] usleep, sleep(num)

2002-07-15 Thread Steve Purkis
On Sun, 14 Jul 2002, Dan Sugalski wrote: > At 9:36 PM -0500 7/13/02, Steve Purkis wrote: > >Hi, > > > >I was inspired by Time::HiRes to create 2 new simple ops for parrot: > >usleep(int), and sleep(num), to behave a bit more like the float version > >of the time op. > > > >I've attached a patch m

Re: [PATCH] usleep, sleep(num)

2002-07-14 Thread Dan Sugalski
At 9:36 PM -0500 7/13/02, Steve Purkis wrote: >Hi, > >I was inspired by Time::HiRes to create 2 new simple ops for parrot: >usleep(int), and sleep(num), to behave a bit more like the float version >of the time op. > >I've attached a patch made off of the 0.0.6 source tree that works *for >Linux* a