• Computes the result of a function and the time it took to execute

    Returns

    The result of the function and the time it took to execute

    Type Parameters

    • T

    Parameters

    • fn: (() => T)

      The function to execute

        • (): T
        • Returns T

    Returns Promise<[T, number]>

Generated using TypeDoc