This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Usage: watch [-n <seconds>] <command> [arguments...] | |
| # Example: watch -n 0.5 nvidia-smi | |
| # Requires PowerShell 7+. | |
| # Requires a terminal with ANSI/VT escape sequence support (e.g. Windows Terminal). | |
| function watch { | |
| param( | |
| [Alias("n")] | |
| [double]$Interval = 2, |