[Numpy-discussion] how to insert some specific delay

Chris Barker chris.barker@noaa....
Wed Feb 8 12:21:25 CST 2012


On Wed, Feb 8, 2012 at 10:18 AM, Debashish Saha <silideba@gmail.com> wrote:
> how to insert some specific delay in python programming using numpy command.

do you mean a time delay? If so -- numpy doesn't (and shouldn't) have
such a thing.

however, the time module has time.sleep()

whether it's a good idea to use that depends on your context -- for a
simple script, maybe. If your code is running in a GUI or something,
then probably not, look at your GUI toolkit's options for timers, etc.

-Chris


-- 

Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

Chris.Barker@noaa.gov


More information about the NumPy-Discussion mailing list