executing specific statement at a given rate in python

Viewed 2217

I want to write a code which execute a statement specified number of times per second, Many of you might be familier about the term rate

Here i want rate to be 30 per second

say i want to execute a function 30 times per second for 60 seconds means rate=30/sec duration=60sec

Can any one tell me is their any api available in python to do the same ?

4 Answers
Related