0.0.16 • Published 7 years ago

delta-t v0.0.16

Weekly downloads
2
License
ISC
Repository
github
Last release
7 years ago

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);
0.0.16

7 years ago

0.0.15

7 years ago

0.0.1

7 years ago