timeit

Run Settings
LanguagePython
Language Version
Run Command
import timeit def my_function(): return sum(range(1000)) # Measure the execution time execution_time = timeit.timeit("my_function()", globals=globals(), number=1000) print(f"Execution time: {execution_time} seconds")
Editor Settings
Theme
Key bindings
Full width
Lines