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

agstopwatch

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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.

1.1.0
latest
Source
npm
Version published
Weekly downloads
1.3K
-2.98%
Maintainers
1
Weekly downloads
 
Created
Source

#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.

Keywords

stopwatch

FAQs

Package last updated on 15 Jul 2013

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