8

How to display execution time in terminal after running any program in Visual Studio Code?

2 Answers 2

2

Depends on your operating system, since VSCode's terminal uses your system's shell.

On Linux and MacOS, you can use time before your command, e.g. time sleep 2.

On Windows 10, it seems to be Measure-Command.

Also, on Linux and MacOS at least, you can customize your shell prompt to display the execution time after each command. You can do it manually or use a package like Starship or Powerlevel10k.

Sign up to request clarification or add additional context in comments.

Comments

1

this may be related to the terminal. You may want to be notified when a command is completed in the terminal. you can check it out for that.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.