I want to limit the calculation-speed. There was a command for rate per second. Could anybody help me?
doesn’t rate() work in the newer version of Python?
Thanks
I want to limit the calculation-speed. There was a command for rate per second.
Share
Like Ignacio said, you can measure the time since the last calculation, calculate the time until the next, and sleep until then. You can also do it without any other framework, for example, with these functions: