Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python exceute 60 records per minute counter

import sched, time
s = sched.scheduler(time.time, time.sleep)
def do_something(sc): 
    print("Doing stuff...")
    # do your stuff
    s.enter(60, 1, do_something, (sc,))

s.enter(60, 1, do_something, (s,))
s.run()
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #exceute #records #minute #counter
ADD COMMENT
Topic
Name
9+8 =