← Useful Tips
Python / DataPython

time python script.py: Measure a script's total runtime

Use time python script.py to measure a script's total runtime. It improves repeatability and debugging in Python and data workflows.

time python script.py

Why it helps

Use time python script.py to measure a script's total runtime. It improves repeatability and debugging in Python and data workflows.

How to use it

  1. Open the relevant app or terminal.
  2. Use the shortcut or command above in the relevant context.
  3. Check the result; for commands that change data, test on a small example first.
People also search for
time python script.py: Measure a script's total runtimetime python script.pymeasure a script's total runtimehow to measure a script's total runtimePython / Data measure a script's total runtime

Related tips