code: def elapsed_time(self):
          
          if self._end_time:
              elapsed_time = round(self._end_time - self._start_time, 3)
              return elapsed_time
          else:
              return None
docs: To know the duration of the function.
  
          This property might return None if the function is still running.