import time


def time_function_call(fx):
    """
    This decorator will provide a log message measuring how long a function call took.
    
    Arguments:
    fx -- The function to measure
    """
    
    def wrapper(*args, **kwargs):
        t = time.time()
        
        r = fx(*args, **kwargs)
        
        diff = time.time() - t
        
        diff_string = str(round(diff, 6)) + " seconds"
        
        print("%s, duration=%s" % (fx.__name__, diff_string))
        
        return r
    return wrapper