Let's say i have a function in Python and it's pretty fast so i can call it in a loop like 10000 times per second.
I'd like to call it, for example, 2000 times per second but with even intervals between calls (not just call 2000 times and wait till the end of the second). How can i achieve this in Python?