...
 
Commits (3)
......@@ -109,7 +109,7 @@ proc stopwatch*(enableLapping:bool): Stopwatch =
startTicks: 0.Ticks,
recordLaps: enableLapping,
previousLap: 0.Ticks,
laps: if enableLapping: @[] else: nil,
laps: @[],
total: 0
)
......@@ -345,4 +345,3 @@ proc totalMsecs*(sw: var Stopwatch): int =
## float).
proc totalSecs*(sw: var Stopwatch): float =
return secs(sw.totalMsecs)
......@@ -143,7 +143,7 @@ proc stopwatch*(enableLapping:bool): Stopwatch =
startTicks: 0.Ticks,
recordLaps: enableLapping,
previousLap: 0.Ticks,
laps: if enableLapping: @[] else: nil,
laps: @[],
total: 0
)
......@@ -415,4 +415,3 @@ proc totalMsecs*(sw: var Stopwatch): int64 =
## See also: `totalNsecs()`, `totalUsecs()`, `totalMsecs()`
proc totalSecs*(sw: var Stopwatch): float =
return secs(sw.totalNsecs)
......@@ -119,5 +119,3 @@ else:
recordLaps = false
test()