New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

hr-watch

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hr-watch

A high-resoultion stopwatch for Node.

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

hr-watch

A high-resoultion stopwatch for Node.
v1.0.1 Build Status

API

start
starts timer

stop([unit])
stops timer
returns elapsed time

lap
marks a lap, starts a new lap timer
returns previous lap time (unit)

read([unit])
gets current timer

  • when running laps, returns an array of laps
  • when not running laps, returns the current elapsed time

clear
clears out timer

reset
stops timer and clears

unit(unit)
sets returned unit (ns, ms, s), by default this is ns

TODO

  • multiple named timers
  • improve README

kickstarted by npm-boom

Keywords

timer

FAQs

Package last updated on 06 Jun 2016

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