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

Latest version **1.1.0** (published 2013-07-15) · BSD license · 0 weekly downloads

## Install

```sh
npm install agstopwatch
pnpm add agstopwatch
yarn add agstopwatch
bun add agstopwatch
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2013-07-15 |
| First published | 2013-07-10 |
| Weekly downloads | 0 |
| License | BSD |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Andrew Gaspar |
| Maintainers | andrewgaspar |
| Keywords | stopwatch, timer, typescript |

## Links

- npm: https://www.npmjs.com/package/agstopwatch
- Repository: https://github.com/AndrewGaspar/AGStopwatch
- Issues: https://github.com/AndrewGaspar/AGStopwatch/issues
- npm.io page: https://npm.io/package/agstopwatch

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 1.1.0 (latest) — 2013-07-15
- 1.0.0 — 2013-07-10

## README

#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:

```ts
import Stopwatch = require("agstopwatch");
```

JavaScript:

```js
var Stopwatch = require("agstopwatch");
```

##Usage
###Stopwatch
This is a constructor function. You MUST call it with the new keyword:

```js
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.

---
_Source: https://npm.io/package/agstopwatch · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
