hey all
what is the best way to execute a certain function repeatedly after a certain period of time ?

for example: the increment of a certain variable every second

thx

time.sleep()

import time
x = 1

for it in range(5):
    x = x*2
    time.sleep(x)
    print "Dude!...."
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.