def set_time_domain(timeDomain: str) -> dict:
    """Sets time domain to use for collecting and reporting duration metrics.
    Note that this must be called before enabling metrics collection. Calling
    this method while metrics collection is enabled returns an error.

    Parameters
    ----------
    timeDomain: str
            Time domain

    **Experimental**
    """
    return {"method": "Performance.setTimeDomain", "params": {"timeDomain": timeDomain}}