from typing import Generator


def get_current_time(id: str) -> Generator[dict, dict, float]:
    """Returns the current time of the an animation.

    Parameters
    ----------
    id: str
            Id of animation.

    Returns
    -------
    currentTime: float
            Current time of the page.
    """
    response = yield {"method": "Animation.getCurrentTime", "params": {"id": id}}
    return response["currentTime"]