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 @@ - - - - rolex - - - - - Fork me on GitHub -
-
-

rolex

-

Drift-minimizing setInterval replacement and high-precision timer utility for Node and browser

-
-
-
- - -
-
-
-
-

setInterval

-
-
-
-

rolex

-
-
-
-

Recursive setTimeout

-
-
-
- -
- - - - - - - - - -
timedriftdiff (avg: 0)
-
-
-
-
-
- - - - - diff --git a/timer-comparison.gif b/timer-comparison.gif deleted file mode 100644 index b01b8d6..0000000 Binary files a/timer-comparison.gif and /dev/null differ