Added help comments to make Pester tests pass
This commit is contained in:
@@ -1,10 +1,21 @@
|
|||||||
function Get-Chronometer
|
function Get-Chronometer
|
||||||
{
|
{
|
||||||
|
<#
|
||||||
|
.Description
|
||||||
|
Loads a script and then tracks the line by line execution times
|
||||||
|
|
||||||
|
.Example
|
||||||
|
Get-Chronometer -Path .\example.ps1 -Script {
|
||||||
|
.\example.ps1
|
||||||
|
}
|
||||||
|
#>
|
||||||
[CmdletBinding()]
|
[CmdletBinding()]
|
||||||
param(
|
param(
|
||||||
|
# Script file to measure execution times on
|
||||||
[string[]]
|
[string[]]
|
||||||
$Path,
|
$Path,
|
||||||
|
|
||||||
|
# The script to start the scrupt or execute other commands
|
||||||
[scriptblock]
|
[scriptblock]
|
||||||
$CommandScript
|
$CommandScript
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user