Commit ff00839a authored by Benjamin Summerton's avatar Benjamin Summerton

Fixed stopwatch library for Nim v0.19

parent f1255011
...@@ -109,7 +109,7 @@ proc stopwatch*(enableLapping:bool): Stopwatch = ...@@ -109,7 +109,7 @@ proc stopwatch*(enableLapping:bool): Stopwatch =
startTicks: 0.Ticks, startTicks: 0.Ticks,
recordLaps: enableLapping, recordLaps: enableLapping,
previousLap: 0.Ticks, previousLap: 0.Ticks,
laps: if enableLapping: @[] else: nil, laps: @[],
total: 0 total: 0
) )
......
...@@ -143,7 +143,7 @@ proc stopwatch*(enableLapping:bool): Stopwatch = ...@@ -143,7 +143,7 @@ proc stopwatch*(enableLapping:bool): Stopwatch =
startTicks: 0.Ticks, startTicks: 0.Ticks,
recordLaps: enableLapping, recordLaps: enableLapping,
previousLap: 0.Ticks, previousLap: 0.Ticks,
laps: if enableLapping: @[] else: nil, laps: @[],
total: 0 total: 0
) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment