GitPedia

Driftless

Driftless setInterval and setTimeout replacement for Node and the browser

From dbkaplun·Updated May 28, 2025·View on GitHub·

Driftless setInterval and setTimeout replacement for Node and the browser The project is written primarily in JavaScript, distributed under the MIT License license, first published in 2014. Key topics include: accurate, drift, precise, setinterval, settimeout.

driftless Build Status

Driftless setInterval and setTimeout replacement for Node and the browser

comparison

Usage

npm install driftless
js
import { setDriftlessTimeout, setDriftlessInterval, clearDriftless, } 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.

Contributors

Showing top 2 contributors by commit count.

View all contributors on GitHub →

This article is auto-generated from dbkaplun/driftless via the GitHub API.Last fetched: 6/14/2026