'Pycharm issue with executing code in a set time in python

Help. I have attempted to execute code using the pycharm IDE and the code takes longer than expected to be executed(around 6-7 seconds) which is really annoying. This issue only happens when I use pygame in pycharm.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source