do "some action" once a minute
jstroud at ucla.edu
Wed May 10 02:35:34 CEST 2006
Petr Jakes wrote:
> I would like to do "some action" once a minute. My code (below) works,
> I just wonder if there is some more pythonic approach or some "trick"
> how to do it differently.
> while 1:
> min, sec = time.localtime()[4:6]
> if sec==0 and minutes!=min: # first occur of sec==0 only!! polling
> 10x a second
> print "Eureca"
> Petr Jakes
This may be what you want:
UCLA-DOE Institute for Genomics and Proteomics
Los Angeles, CA 90095
More information about the Python-list