A simple decorator to measure a function excecution time.
Simple Decorator to measure a function execution time.
from how_long import timer @timer def some_function(): return [x for x in range(10_000_000)]
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.