View the execution time of any Python function on the fly.
-
Simply select/highlight the entire function (including import statements if required) with the cursor and trigger the
Time It
command. -
The generated function call with the specified arguments and the execution time is inserted as a comment below the selected code.
-
Uses the built-in Python3 time module to efficiently compute the execution time.
-
Handles various kinds of Python function definitions, including type hints and default values.
The extension can be installed from the Visual Studio Marketplace.
The source code for this extension is hosted on GitHub.
- Post any issues and suggestions to the GitHub issues page.
- To contribute, fork the project and then create a pull request back to master.
This project is licensed under the MIT License - see the LICENSE file for details