Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

function-timer

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

function-timer

this timer is used for a report of times that you set through your code

  • 1.0.2
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

function-timer

Description: module that makes profileing your application simple.

Getting Started:

npm install function-timer

var functionTimer = require('function-timer')
var timer = new functionTimer({});

methods:

timer.time('id');

	params:
		id: the text idea for this block of time
		
	return: none
	
timer.report():

	params: none;
	return: report object for this timer instance.
	
	ex: 
	
	{ timerCall: '3002.40048ms', second: '5001.587941000001ms' }
	

How it works and example:

timer.time('timerCall')

setTimeout(() => {
		timer.time('timerCall')
	},3000)
	
timer.time('second')

setTimeout(() => {	
		timer.time('second')
		console.log(p.report())
	},5000)		
	
	//timer connects time() calls with the same id for the report.			

FAQs

Package last updated on 14 Dec 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

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