code: def elapsed(self):
          
  
          # Clock stops running when total is reached
          if self.count == self.total:
              elapsed = self.last_update - self.start
          else:
              elapsed = time.time() - self.start
  
          return elapsed
docs: Get elapsed time is seconds (float)