@classmethod
def enable_timing(cls, do_time, max_depth=10000):
    """
        Enable (or disable) timing for all timers not already started.

        Arguments:
            - 'do_time': Boolean to enable or disable timing.
            - 'max_depth': Maximum depth of the timer stack. Timers beyond max_depth will not start.
                           Defaults to 10000
        """
    cls.timing_enabled = do_time
    if do_time:
        cls.max_depth = max_depth
