Merge pull request #5 from KevinMarquette/develop !deploy

DSL Support
This commit is contained in:
Kevin Marquette
2017-02-06 21:08:52 -08:00
committed by GitHub
2 changed files with 4 additions and 1 deletions

View File

@@ -2,7 +2,7 @@
class ScriptLine
{
[float] $Milliseconds = 0
[float] $HitCount = 0
[float] $HitCount = 0
[float] $Min = [float]::MaxValue
[float] $Max = [float]::MinValue
[float] $Average = 0
@@ -10,6 +10,7 @@ class ScriptLine
[string] $Path
[string] $Text
[void]AddExecutionTime([float]$Milliseconds)
{
$this.Milliseconds += $Milliseconds

View File

@@ -12,6 +12,7 @@ function Get-Chronometer
[CmdletBinding()]
param(
# Script file to measure execution times on
[Parameter(Position=0)]
[string[]]
$Path,
@@ -20,6 +21,7 @@ function Get-Chronometer
$LineNumber = $null,
# The script to start the scrupt or execute other commands
[Parameter(Position=1)]
[alias('Script','CommandScript')]
[scriptblock]
$ScriptBlock