• Type Parameters

    • T

    Parameters

    • toTime: Function

      {function}

    Returns { return: T; time: number }

    return is the return value of the toTime function and time is the elapsed time in ms