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

@akkadu/timer

Package Overview
Dependencies
Maintainers
6
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@akkadu/timer

This is a module that allows multiple `console.time` type events to run at the same time.

  • 4.1.2
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
6
Weekly downloads
 
Created
Source

Description

This is a module that allows multiple console.time type events to run at the same time.

Usage example

import Timer from '@akkadu/timer'
const timer = new Timer()

// here some-event is the id of the timer
const startTime = timer.time('some-event')
setTimeout(()=>{
  const {elapsedTime, endTime} = timer.timeEnd('some-event')
  console.log(`Timer started at ${startTime}, ended at ${endTime}, elapsed time is ${elapsedTime}`)
},1000)

FAQs

Package last updated on 20 Oct 2021

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