How to display execution time in terminal after running any program in Visual Studio Code?
            Asked
            
        
        
            Active
            
        
            Viewed 1.9k times
        
    2 Answers
1
            
            
        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.
        
- 21,083
- 14
- 84
- 130
 
    