human
Give me a Python function to measure the time of the day.
assistant
Here is a Python function to measure time of the time

import time

def measure_time(func):
    """Measure time of a function."""
    import time
    start = time.time()
    func()
    end = time.time()
    return end - start

# Enter the function
func = lambda: 1

# Calling the function
print((measure_time(func)))

#Example Output
# 7.152557373046875e-07

#Remember to inspect code for bugs.