def start(self, verbose=None, end_in_new_line=None):
        """Start the stopwatch if it is paused.

        If the stopwatch is already started, then nothing will happen.

        Parameters
        ----------
        verbose : Optional[bool]
            Wether to log. If `None`, use `verbose_start` set during initialization.
        end_in_new_line : Optional[bool]]
            If `False`, prevent logging the trailing new line. If `None`, use
            `end_in_new_line` set during initialization.
        """
        if self._start_time is not None and self._end_time is None:
            # the stopwatch is already running
            return self
        if verbose is None:
            verbose = self.verbose_start
        if verbose:
            if end_in_new_line is None:
                end_in_new_line = self.end_in_new_line
            if end_in_new_line:
                self.log(self.description)
            else:
                self.log(self.description, end="", flush=True)
        self._end_time = None
        self._start_time = datetime.datetime.now()
        return self
def start ( self , verbose = None , end_in_new_line = None ) : if self . _start_time is not None and self . _end_time is None : return self if verbose is None : verbose = self . verbose_start if verbose : if end_in_new_line is None : end_in_new_line = self . end_in_new_line if end_in_new_line : self . log ( self . description ) else : self . log ( self . description , end = "" , flush = True ) self . _end_time = None self . _start_time = datetime . datetime . now ( ) return self
Start the stopwatch if it is paused.

        If the stopwatch is already started, then nothing will happen.

        Parameters
        ----------
        verbose : Optional[bool]
            Wether to log. If `None`, use `verbose_start` set during initialization.
        end_in_new_line : Optional[bool]]
            If `False`, prevent logging the trailing new line. If `None`, use
            `end_in_new_line` set during initialization.