import functools
import time


def compute_time_ms(func):
    """
    Decorator for computing the amount of time taken to do something
    """
    @functools.wraps(func)
    def wrapper(*args, **kwargs):
        start_time = time.time()
        original_result = func(*args, **kwargs)
        time_elapsed = time.time() - start_time
        print(f"Time taken: {time_elapsed * 1000}")
        return original_result
    return wrapper