Commit 1157f1ea authored by Benjamin Summerton's avatar Benjamin Summerton

Added a little more testing code

parent 03897fa9
......@@ -34,8 +34,6 @@ proc secs*(sw: var Stopwatch): float {.inline.}
#proc totalSecs*(sw: var Stopwatch): float {.inline.}
# TODO function for the done laps only?
# TODO document
proc newStopwatch*(): Stopwatch =
......
......@@ -11,10 +11,25 @@ echo sw.secs
#echo sw.msecs
#echo sw.usecs
#echo sw.nsecs
echo ""
sw.start()
sleep(500)
echo sw.secs
sw.stop()
echo sw.secs
echo ""
sw.start()
echo sw.secs
sleep(100)
echo sw.secs
echo sw.secs
echo sw.secs
echo sw.secs
echo sw.secs
sleep(100)
sw.stop()
echo sw.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