I have a certain piece of code that I want to run every 2 minutes. One of my ideas is to get the time and modules that with whatever number represents 2 minutes. Would this work? and is there a simpler way to do accomplish the same thing?
I think knowing how to do this will come in handy in the future so I am trying to obtain the most elegant solution. Thanks in advance for any help!