Possible Duplicate:
What is the best way to repeatedly execute a function every x seconds in Python?
I would like to get system information using SMNT protocol and I would like to refresh this data every 30 seconds. My idea is to run a thread and after getting the data call the sleep function. Is there any other way. for example a built in function which run a given function each 30 seconds in the background?