2 sleep - suspend operation for a specified time
8 n non-negative real, defaults to 1
10 return integer or null value
13 This uses the C-library sleep (if n is integral) or usleep (for
14 non-integral n) to suspend operation for n seconds. If n is an
15 integer and the sleep is stopped by an interruption, the number
16 of seconds remaining is returned.
18 One kind of use is to slow down output to permit easier reading of
21 ; for (i = 0; i < 100; i++) {
26 The following illustrates what happens if ctrl-C is hit 5 seconds
27 after the first command:
44 ## Copyright (C) 2000-2006 Ernest Bowen
46 ## Calc is open software; you can redistribute it and/or modify it under
47 ## the terms of the version 2.1 of the GNU Lesser General Public License
48 ## as published by the Free Software Foundation.
50 ## Calc is distributed in the hope that it will be useful, but WITHOUT
51 ## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
52 ## or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General
53 ## Public License for more details.
55 ## A copy of version 2.1 of the GNU Lesser General Public License is
56 ## distributed with calc under the filename COPYING-LGPL. You should have
57 ## received a copy with calc; if not, write to Free Software Foundation, Inc.
58 ## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
60 ## @(#) $Revision: 30.1 $
61 ## @(#) $Id: sleep,v 30.1 2007/03/16 11:10:42 chongo Exp $
62 ## @(#) $Source: /usr/local/src/cmd/calc/help/RCS/sleep,v $
64 ## Under source code control: 2000/12/14 01:33:00
65 ## File existed as early as: 2000
67 ## Share and enjoy! :-) http://www.isthe.com/chongo/tech/comp/calc/