
Product
Socket Now Available on Google Cloud Marketplace
Socket, the leader in open source security, is now available on Google Cloud Marketplace for simplified procurement and enhanced protection against supply chain attacks.
agstopwatch
Advanced tools
AGStopwatch is built using TypeScript. It's just a basic stopwatch - you can start it, stop it, restart it, and check how much time has elapsed.
#AGStopwatch
AGStopwatch is built using TypeScript. It's just a basic stopwatch - you can start it, stop it, restart it, and check how much time has elapsed.
Install using:
npm install agstopwatch
Use it in your code using:
Typescript:
import Stopwatch = require("agstopwatch");
JavaScript:
var Stopwatch = require("agstopwatch");
##Usage ###Stopwatch This is a constructor function. You MUST call it with the new keyword:
var sw = new Stopwatch();
###Stopwatch.start() Starts the stopwatch.
###Stopwatch.stop() Stops the stopwatch.
###Stopwatch.restart() Clears current start time and restarts the stopwatch.
###Stopwatch.reset() Clears current start and end time and stops the stopwatch.
###Stopwatch.startTime The time the stopwatch was started (in ms).
###Stopwatch.stopTime The time the stopwatch was stopped (in ms).
###Stopwatch.elapsed The time elapsed (in ms).
##Stopwatch.running Returns true if the stopwatch is running.
FAQs
AGStopwatch is built using TypeScript. It's just a basic stopwatch - you can start it, stop it, restart it, and check how much time has elapsed.
The npm package agstopwatch receives a total of 1,118 weekly downloads. As such, agstopwatch popularity was classified as popular.
We found that agstopwatch demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Product
Socket, the leader in open source security, is now available on Google Cloud Marketplace for simplified procurement and enhanced protection against supply chain attacks.
Security News
Corepack will be phased out from future Node.js releases following a TSC vote.
Research
Security News
Research uncovers Black Basta's plans to exploit package registries for ransomware delivery alongside evidence of similar attacks already targeting open source ecosystems.