Resolved issues with times listed in partial milliseconds instead of totalseconds #11

This commit is contained in:
KevinMarquette
2017-02-08 20:40:50 -08:00
parent 8366fccffd
commit 2c8270347d

View File

@@ -31,7 +31,7 @@ class ScriptLine
$this.LastNode.Duration = $Duration $this.LastNode.Duration = $Duration
$this.Duration += $Duration $this.Duration += $Duration
$this.HitCount += 1 $this.HitCount += 1
$this.Average = $this.Duration.Milliseconds / $this.HitCount $this.Average = $this.Duration.TotalMilliseconds / $this.HitCount
if($Duration -lt $this.Min) if($Duration -lt $this.Min)
{ {
@@ -62,7 +62,7 @@ class ScriptLine
[string] ToString() [string] ToString()
{ {
$values = @( $values = @(
$this.Duration.Milliseconds $this.Duration.TotalMilliseconds
$this.HitCount $this.HitCount
$this.Average $this.Average
$this.LineNumber $this.LineNumber