'Time elapsed in seconds since the stack operation started.'

def time_elapsed(self):

    start_time = (self.updated_time or self.created_time)
    return (oslo_timeutils.utcnow() - start_time).total_seconds()
