Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
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.

latest
npmnpm
Version
4.1.2
Version published
Weekly downloads
15
-61.54%
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