Commit 79f3a0d9 authored by Benjamin Summerton's avatar Benjamin Summerton

Spacing

parent 8c735ae2
......@@ -177,6 +177,7 @@ proc lap*(sw: var Stopwatch; num: int; incCur: bool = false): int64 =
# only look at completed laps
return sw.laps[num]
## Returns a list of all the recorded laps (in nanoseconds). If `incCur` is set
## `true`, then it will include the current lap in the result. By default it is
## `false`. If no lap is being recored, than `incCur` will be ignored.
......@@ -203,6 +204,7 @@ proc laps*(sw: var Stopwatch; incCur: bool = false): seq[int64] =
return allLaps
## Removes a lap from the Stopwatch's record with the given index of `num`.
## This function has the possibility of raising an `IndexError`.
proc rmLap*(sw: var Stopwatch; num: int) =
......@@ -233,6 +235,7 @@ proc nsecs*(sw: var Stopwatch): int64 =
# No laps yet
return 0
## The same as `nsecs()`, except the return value is in microseconds.
##
## See also: `nsecs()`, `msecs()`, `secs()`
......
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