How to control the time that a function takes to execute in a loop?

Printable View