New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@kofile/timer

Package Overview
Dependencies
Maintainers
35
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kofile/timer

Node instrumentation timer

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
19
decreased by-81.55%
Maintainers
35
Weekly downloads
 
Created
Source

Timer

Build Status Coverage Status Commitizen friendly semantic-release

A small timer utility, for benchmarking runtimes in Node programs.

Example:

const Timer = require('@kofile/timer')

const timer = new Timer('some key')

timer.on('end', (message, [seconds, nanoseconds]) => {
  console.info('message is:', message)
  //=> Duration for "some key": 5s 0.000552ms
  console.info(`seconds: ${seconds}s, nanoseconds: ${nanoseconds}ns`)
})

timer.start()

setTimeout(() => { timer.end() }, 5000)

Supported Platforms

Node 7+

Testing

Run tests with npm test

Authors

  • @neezer

FAQs

Package last updated on 26 Oct 2017

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc