hasnainroopawalla / vscode-python-timeit

A Visual Studio Code extension to view the execution time of any Python function on the fly.

Home Page:https://marketplace.visualstudio.com/items?itemName=HasnainRoopawalla.vscode-python-timeit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Visual Studio Code Extension - Python TimeIt

VS Code Python Time It Logo


Visual Studio Marketplace Version Visual Studio Marketplace Downloads Visual Studio Marketplace Installs Visual Studio Marketplace Installs

View the execution time of any Python function on the fly.

Demo

Demo

Features

  • 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.

Installation

The extension can be installed from the Visual Studio Marketplace.

Contributing

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.

License

This project is licensed under the MIT License - see the LICENSE file for details

About

A Visual Studio Code extension to view the execution time of any Python function on the fly.

https://marketplace.visualstudio.com/items?itemName=HasnainRoopawalla.vscode-python-timeit

License:MIT License


Languages

Language:TypeScript 100.0%