Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Apr 1998 22:52:17 +0000
From:      Niall Smart <rotel@indigo.ie>
To:        Poul-Henning Kamp <phk@FreeBSD.ORG>, denny1@home.com, freebsd-bugs@FreeBSD.ORG
Subject:   Re: bin/4154
Message-ID:  <199804142152.WAA01576@indigo.ie>
In-Reply-To: Poul-Henning Kamp <phk@FreeBSD.ORG> "Re: bin/4154" (Apr 14, 12:19pm)

next in thread | previous in thread | raw e-mail | index | archive | help
On Apr 14, 12:19pm, Poul-Henning Kamp wrote:
} Subject: Re: bin/4154
> Synopsis: wish /bin/sleep handled fractions of a second.
> 
> State-Changed-From-To: feedback-suspended
> State-Changed-By: phk
> State-Changed-When: Tue Apr 14 12:18:38 PDT 1998
> State-Changed-Why: 
> ->suspended.

Hrm, how about I write code to support two forms of sleep:

sleep n

which sleeps n seconds, and

sleep -d | -h | -m | -s | -u duration ...

which sleeps the specified number of days, hours, minutes, seconds
or microseconds.  You can even specify multiple arguments and use
floating point numbers so that

sleep -d 1.5 -m 2 -s 4

would mean sleep 1/2 days, 2 minutes and 4 seconds.

Whaddyall think?  A solution looking for a problem or the best
invention since sliced bread?

Niall

-- 
Niall Smart.  Microsoft Suck.  See www.freebsd.org for details.
echo "#define if(x) if(!(x))" >> /usr/include/stdio.h

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199804142152.WAA01576>