lasttick = -0.01 tick = float(0.00) while True: tick = tick + float(0.01) if tick > lasttick: #Your tick update here: print(tick) #Prints the tick lasttick = lasttick + 0.01