title: How can I print every minute using Datetime with Python
body: <p>As an example, I want to print, "1 min", every time 1 minute has passed using time or datetime.  I cant use time.sleep(60) because I have more code that needs to run in the whileloop every update. I need a way to check if datetime.now() is greater than 1 minute ago. Thanks!</p>
  
  <pre><code>import time
  import datetime as dt
  
  t = dt.datetime.now()
  
  while True:
    if 60 seconds has passed:
       print("1 Min")
  </code></pre>