Duration (datetime.timedelta).

def delta(self):
        """Duration (datetime.timedelta)."""
        end_time = self.end_time if self.end_time else dt.datetime.now()
        return end_time - self.start_time