@property
    def current_duration(self):
        if self.end_time:
            return self.duration
        return get_duration(self.start_time, self.end_time)
Get the current duration relative to the current time.
dataset/ETHPy150Open chop-dbhi/django-sts/sts/models.py/Transition.current_duration