Commit a945e9d1 authored by Benjamin Summerton's avatar Benjamin Summerton

update to v2.0

parent 5676bd96
...@@ -4,12 +4,11 @@ This is a fork of rbmz's stopwatch: https://github.com/rbmz/stopwatch ...@@ -4,12 +4,11 @@ This is a fork of rbmz's stopwatch: https://github.com/rbmz/stopwatch
It adds features such as multiple starting & stopping, lapping, and handy time It adds features such as multiple starting & stopping, lapping, and handy time
measurement conversion utility functions. measurement conversion utility functions.
It is based off of Nim's builting `system/timers` module
The offical repo can be found here: The offical repo can be found here:
https://gitlab.com/define-private-public/stopwatch https://gitlab.com/define-private-public/stopwatch
All other places should be considered mirrors. All other places should be considered mirrors, but I am willing to address
issues on places like GitHub. Please use the GitLab repo though if you can.
Documentation Documentation
...@@ -85,3 +84,13 @@ let micros = sw.totalUsecs ...@@ -85,3 +84,13 @@ let micros = sw.totalUsecs
let lapsSecs = sw.laps.map(proc(x: int64): float = secs(x)) let lapsSecs = sw.laps.map(proc(x: int64): float = secs(x))
``` ```
Other Notes
-----------
While in development, rbmz and I noticed some issues with precision on non-Linux
platforms. The difference should be negligible for most of your use cases (e.g.
measuring a download's time), but could be an issue if you're looking for
precise nanosecond resolution an all three of the major platforms. Contact me
on the issue tracker if you have any ideas on how to improve this.
[Package] [Package]
name = "stopwatch" name = "stopwatch"
version = "1.3" version = "2.0"
author = "define-private-public" author = "define-private-public"
description = "A simple timing library for benchmarking code and other things." description = "A simple timing library for benchmarking code and other things."
license = "MIT" license = "MIT"
......
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