delta-t

0.0.16 • Public • Published

This is an early draft of Δt

Package delta-t (Δt) provides a class that you can use to create instances of deltas. Deltas are differences in values, for default it is difference in time (performance.now() with Date.now() fallback)

Example1: keeping track of time passed between frames.

const Δ = require('delta-t');
 
Δt = new Δ();
 
setInterval(function(){
    Δt.update();
    console.log(Number(Δt));
},17);

Readme

Keywords

Package Sidebar

Install

npm i delta-t

Weekly Downloads

1

Version

0.0.16

License

ISC

Last publish

Collaborators

  • tymski