# tuning-timer

> The timer which will be adjusted as time goes by.

Latest version **0.1.0** (published 2016-07-03) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install tuning-timer
pnpm add tuning-timer
yarn add tuning-timer
bun add tuning-timer
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2016-07-03 |
| First published | 2016-07-03 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | DanielZhu |
| Maintainers | staydan |

## Links

- npm: https://www.npmjs.com/package/tuning-timer
- npm.io page: https://npm.io/package/tuning-timer

## Recent versions

- 0.1.0 (latest) — 2016-07-03

## README

# tuning-timer
[![NPM version][npm-version-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![License][license-image]][npm-url] 

Everyone know that window.setTimeout & window.setInterval cannot be 100 precent accurate for a specified countdown timer or the clock.

So I try to figure out some simple solutions, boom... tuning-timer was bored on July 3rd , 2016

User must give the required arguments when initializing the tuning-timer **maxDist**.

## Features

- setTimeout / clearTimeout
- setInterval / clearInterval

## How to use

`npm install tuning-timer --save` 

``` js
import TuningTimer from 'tuning-timer';

let tuningTimer = new TuningTimer();
tuningTimer.timetick(() => {
    console.log('hello ticktick: ');
}, 5000);

let tuningTimer2 = new TuningTimer();
tuningTimer2.setTimeout(() => {
    console.log('hello, dandan at ' + Date.now());
}, 2000);

tuningTimer2.clearTimeout();

let tuningTimer3 = new TuningTimer();
tuningTimer3.setInterval(() => {
    console.log('hello, dandan at ' + Date.now());
}, 5000);
tuningTimer3.clearInterval();
```

## Test

For test the module, please run the commands below:
`npm run dev`

<img width="360px" src="https://raw.githubusercontent.com/Staydan/Totoro_staydan.com_website/master/app/res/images/preImgs/tuning.timer/tuning.png">

Lisence @Apache-2.0 

Copyright to @2012-2016 [Staydan.com](http://staydan.com)

[license-image]: https://img.shields.io/npm/l/tuning-timer.svg?maxAge=2592000&style=flat-square
[downloads-image]: https://img.shields.io/npm/dm/tuning-timer.svg?maxAge=2592000&style=flat-square
[npm-version-image]: http://img.shields.io/npm/v/tuning-timer.svg?maxAge=2592000&style=flat-square
[npm-url]: https://www.npmjs.com/package/tuning-timer

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