diff --git a/README.md b/README.md index d4669f0..da4cc0c 100644 --- a/README.md +++ b/README.md @@ -2,13 +2,7 @@ Driftless setInterval and setTimeout replacement for Node and the browser -![comparison](timer-comparison.gif) - -## How it works - -`driftless` repeatedly calls setTimeout in advance of the requested timeout for -greater accuracy. It does this recursively, until the timeout is reached within -a given threshold. +[![comparison](comparison.gif)](https://asciinema.org/a/183890) ## Usage @@ -24,3 +18,9 @@ import { } from 'driftless'; // Use like setTimeout and setInterval ``` + +## How it works + +`driftless` repeatedly calls setTimeout in advance of the requested timeout for +greater accuracy. It does this recursively, until the timeout is reached within +a given threshold. diff --git a/comparison.gif b/comparison.gif new file mode 100644 index 0000000..2b594da Binary files /dev/null and b/comparison.gif differ diff --git a/index.html b/index.html deleted file mode 100644 index 3803e67..0000000 --- a/index.html +++ /dev/null @@ -1,59 +0,0 @@ - - -
-Drift-minimizing setInterval replacement and high-precision timer utility for Node and browser
-time | -drift | -diff (avg: 0) | -
---|