tmarker
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i tmarker

Weekly Downloads

1

Version

0.0.4

License

ISC

Unpacked Size

4.84 kB

Total Files

6

Last publish

Collaborators

  • meixg