New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@slime/stopwatch

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@slime/stopwatch - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

4

package.json
{
"name": "@slime/stopwatch",
"version": "1.0.1",
"description": "a class for handling elapsed time in ms",
"version": "1.0.2",
"description": "a class for handling and printing elapsed time in ms",
"main": "StopWatch.js",

@@ -6,0 +6,0 @@ "scripts": {

@@ -22,7 +22,23 @@ # StopWatch

API to query number of ms elapsed and display time elapsed as minutes/seconds/ms string:
getters API to query number of ms elapsed and display time elapsed as minutes/seconds/ms string:
```
stopWatch.getTimeElapsedInMs(); // returns number of time elapsed in ms
stopWatch.getTimeElapsedInStopWatchFormatString(); // returns mins/secs/ms in 00:00:00 format
stopWatch.getTimeElapsedInMs; // returns number of time elapsed in ms
stopWatch.getTimeElapsedInStopWatchFormatString; // returns mins/secs/ms in 00:00:00 format
```
## demo usage
start timer and show time elapsed after 1.5 seconds
```
const StopWatch = require("@slime/stopwatch");
let stopWatch = new StopWatch();
console.log(stopWatch.getTimeElapsedInMs);
console.log(stopWatch.getTimeElapsedInStopWatchFormatString);
stopWatch.startTimer();
setTimeout(()=>{
stopWatch.stopTimer();
console.log(stopWatch.getTimeElapsedInMs);
console.log(stopWatch.getTimeElapsedInStopWatchFormatString);
}, 1500);
```
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