import time


def time_method(func, *args, ppd=3, return_time=False):
    """Computes the time of execution for a function.
    
    Parameters:
    func: function to be applied
    args: any number of arguments to be passed into the function
    return_time: controls whether to return only the result or the result and time elapsed
    
    Returns:
    depending on return_time, either result or the tuple (result, time_elapsed)
    """
    tic = time.time()
    res = func(*args)
    toc = time.time()
    print(f"{func.__name__} computed in {toc-tic:.3f} seconds.")
    if return_time:
        return res, toc - tic
    else:
        return res