Resolved issues with times listed in partial milliseconds instead of totalseconds #11
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user