from typing import Callable
from typing import Any
import time


def time_it(search: Callable[[list, Any], Any], L: list, v: Any) -> float: 
    """Time how long it takes to run function 
    search to find value v in list L.
    """

    t1 = time.perf_counter() 
    search(L, v)
    t2 = time.perf_counter()    
    return (t2 - t1) * 1000.0