1

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

GG.
  • 17,726
  • 11
  • 69
  • 117
Atulya Jha
  • 43
  • 7

2 Answers2

0

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.

Raşit İri
  • 93
  • 1
  • 7
0

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.

GG.
  • 17,726
  • 11
  • 69
  • 117