From: Jonathan Hankins <jonathan-hankins@mindspring.com>
To: <zsh-users@sunsite.dk>
Subject: Re: math, percentage
Date: Thu, 05 Jan 2006 17:54:51 -0600 [thread overview]
Message-ID: <87ek3m9qno.fsf@shazam.localnet> (raw)
In-Reply-To: <00af01c611b2$a287fdb0$951fa8c0@venti> (Brian K. White's message of "Wed, 4 Jan 2006 23:43:54 -0500")
"Brian K. White" <brian@aljex.com> writes:
> explicitly on the bang line. My biggest item about ksh93 lately is
> that it has a built-in sleep that takes floating point values. I have
> things that really do want a "sleep .1", and anything that wants that,
> by definition also really wants it built-in, not to fork a child and
> load an executable every time. No other shell anywhere has that that
> I've found. (hint!) Perl has nap() and probably other popular non
According to zshmodules(1), you can use zselect to sleep with
approximately 1/100 sec. granulatiry.
typeset -F SECONDS
zmodload -i zsh/zselect
print $SECONDS
# sleep for 1/5 sec
zselect -t 20
print $SECONDS
On my system, this gives:
922.1230270000
922.3312820000
-Jonathan Hankins
--
+------------------+-----------------------------------------------------+
|Jonathan Hankins | jonathan-hankins@mindspring.com |
+------------------+-----------------------------------------------------+
prev parent reply other threads:[~2006-01-05 23:55 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-31 6:56 Brian K. White
2005-12-31 7:22 ` Eric Mangold
2005-12-31 7:25 ` Dan Nelson
2005-12-31 20:44 ` Brian K. White
[not found] ` <488030720601041505g7a9aee72nc8ebcf1bde13b3a4@mail.gmail.com>
2006-01-05 4:43 ` Brian K. White
2006-01-05 23:54 ` Jonathan Hankins [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ek3m9qno.fsf@shazam.localnet \
--to=jonathan-hankins@mindspring.com \
--cc=zsh-users@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).