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

microtimer

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

microtimer

Nanosecond profiler and logger

latest
Source
npmnpm
Version
1.1.0
Version published
Weekly downloads
8
60%
Maintainers
1
Weekly downloads
 
Created
Source

#microtimer

A simple high-resolution timing and profiling tool. ##installation

npm install microtimer

##usage

timer.set('foo');
setTimeout(function() {
	timer.get('foo');
	//	Set logger to a function
	timer.setLogger(function(name, ns, str) {
		console.log("Timer:" + name + " second timeout: " + (ns / 1e6) + "ms");
	})
}, 1000);

setTimeout(function() {
	timer.get('foo');
	//	Clears 'foo' timer
	timer.clear('foo');
},3000);
// Timer:foo 1002238412ns
// Timer:foo second timeout 3002.888295ms

Keywords

nanosecond

FAQs

Package last updated on 07 Dec 2014

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