def end(self):
    """Mark the time at which this workunit ended."""
    self.end_time = time.time()

    return self.path(), self.duration(), self._self_time(), self.has_label(WorkUnitLabel.TOOL)
Mark the time at which this workunit ended.