def METHOD_NAME(
    self,
    time_in_s: Optional[float] = None,
) -> None:
    if time_in_s is None:
        time_in_s = self._get_time_in_sec()
    if self._current_node is not None:
        self._current_node.end = time_in_s