Socket
Book a DemoInstallSign in
Socket

trace-timer

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

trace-timer

trace timer

latest
Source
npmnpm
Version
0.0.5
Version published
Maintainers
1
Created
Source

Trace timer

npm license Build Status Coverage Status dependencies Status devDependencies Status Known Vulnerabilities Donate

Simple timer to trace your graph-like complex async code.

Install

npm install  trace-timer

Use

    const TraceTimer = require('trace-timer')
    timer = new TraceTimer('someName', null, false);
    const timer1 = new TraceTimer('someChild1', null, false);
    timer1.countSync(()=>clock.tick(100));
    const timer2 = new TraceTimer('someChild2', null, false);
    timer2.countAsync(async()=>clock.tick(100));
    timer.addChild(timer1);
    timer.addChild(timer2);
    console.log(timer);

FAQs

Package last updated on 18 Oct 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts