parameters: (self)
docstring: Return how much time has been elapsed since the start.
docstring_summary: Return how much time has been elapsed since the start.
docstring_tokens: Return how much time has been elapsed since the start .
function: def time_elapsed(self) -> datetime.timedelta:
          """
          Return how much time has been elapsed since the start.
          """
          if self.stop_time is None:
              return datetime.datetime.now() - self.start_time
          else:
              return self.stop_time - self.start_time
function_tokens: def time_elapsed ( self ) -> datetime . timedelta : if self . stop_time is None : return datetime . datetime . now ( ) - self . start_time else : return self . stop_time - self . start_time