title: When the time expires, the function starts again from the beginning
body: <pre><code>import pygame as pg
  pg.init()
  
  def fixTime():
      totalTime = 4
      return totalTime
  
  while 1:
      flowTime = int(pg.time.get_ticks()/1000)
      elapsed_time = (fixTime() - flowTime)
  
      if elapsed_time &lt;=0:
          fixTime()
      else:
          print(elapsed_time)
  </code></pre>
  <p>When the current ends, 1 is repeated, but I want to make a function that returns the time to the beginning.</p>