0.0.4 • Published 5 years ago

tmarker v0.0.4

Weekly downloads
3
License
ISC
Repository
github
Last release
5 years ago

tmarker

mark sequence time easily.

quick start

import {TimeMarker} from 'tmarker';

const marker = new TimeMarker(['a', 'b', 'c'], data => {
    console.log(data);
});

marker.mark('a');
setTimeout(() => {
    marker.mark('b');
}, 500);
setTimeout(() => {
    marker.mark('c'); // callback get { b: 507, c: 1003 }
}, 1000);
0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago