From: nobu.nokada@... Date: 2002-04-17T13:43:32+09:00 Subject: Re: alternatives to nanosleep / usleep ? Hi, At Wed, 17 Apr 2002 13:21:04 +0900, Dennis Newbold wrote: > I'm basically porting some C code to a Ruby program, because I > think in the long run it will be easier to maintain and modify. At a > couple of points in the C code, it calls nanosleep to create a brief delay > in sending commands to an external device (the host is alot faster > than the external device, and in a couple of situations, you can > send it a second command before its had time to complete the first > one). The delay times I need are 1/8 sec. and 1/4 sec. As far as > I can tell, Ruby doesn't provide access to any of nanosleep, usleep, > and clock, and I have no idea how long: sleep(0.125) -- Nobu Nakada