From 2c8270347de1b6ca8e6572208ebf5b9503f2e2f0 Mon Sep 17 00:00:00 2001 From: KevinMarquette Date: Wed, 8 Feb 2017 20:40:50 -0800 Subject: [PATCH] Resolved issues with times listed in partial milliseconds instead of totalseconds #11 --- Chronometer/Classes/ScriptLine.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Chronometer/Classes/ScriptLine.ps1 b/Chronometer/Classes/ScriptLine.ps1 index dab7635..e15c8d0 100644 --- a/Chronometer/Classes/ScriptLine.ps1 +++ b/Chronometer/Classes/ScriptLine.ps1 @@ -31,7 +31,7 @@ class ScriptLine $this.LastNode.Duration = $Duration $this.Duration += $Duration $this.HitCount += 1 - $this.Average = $this.Duration.Milliseconds / $this.HitCount + $this.Average = $this.Duration.TotalMilliseconds / $this.HitCount if($Duration -lt $this.Min) { @@ -62,7 +62,7 @@ class ScriptLine [string] ToString() { $values = @( - $this.Duration.Milliseconds + $this.Duration.TotalMilliseconds $this.HitCount $this.Average $this.LineNumber