human
Write me a Python function for timing a call.
assistant
Here is a Python function for timing a call

import time

def timeit(f):
        """
        Measures the time it takes for a function to execute.
        :param f: function to be timed
        :return:
        """
        import time
        start = time.time()
        result = f()
        end = time.time()
        print(("{} seconds".format(end - start)))

# Enter the function

def f():
        """
        A function to be timed
        :return:
        """
        print("Hello World")

# Calling the function
print((timeit(f)))

#Example Output
# Hello World
# 3.0994415283203125e-06 seconds
# None

#Remember to inspect code for bugs.