How to display execution time in terminal after running any program in Visual Studio Code?
Asked
Active
Viewed 2,343 times
2 Answers
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.
![](../../users/profiles/652669.webp)
GG.
- 17,726
- 11
- 69
- 117