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
| # // ================================================================================================================ | |
| # // | This script creates a time object similar to the [System.Diagnostics.Stopwatch] object, but is much simpler. | | |
| # // ================================================================================================================ | |
| # [Script area] | |
| # Overload class definition | |
| Class Time | |
| { | |
| Hidden [Object] $Start | |
| Time() |
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
| # Name -> [list cmdlet parameters alias - powershell] | |
| # Link -> https://www.youtube.com/watch?v=z79w4cmhius | |
| # Updated *slightly*... | |
| $CommandName = Read-Host "Type command name" | |
| (Get-Command $CommandName).Parameters.Values | Select-Object Name, Aliases |
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
| Class PercentProgress | |
| { | |
| [DateTime] $Start | |
| [DateTime] $Now | |
| [DateTime] $End | |
| [Float] $Percent | |
| [TimeSpan] $Elapsed | |
| [TimeSpan] $Remain | |
| [TimeSpan] $Total | |
| PercentProgress([String]$Start) |
OlderNewer