You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

clocktick

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

clocktick - npm Package Compare versions

Comparing version

to
0.0.2

dist/clocktick.js

4

package.json
{
"name": "clocktick",
"version": "0.0.1",
"version": "0.0.2",
"description": "Clock-accurate timeout for Node.js and browser",
"main": "index.js",
"scripts": {
"build": "mkdir -p dist/ && browserify index.js --standalone clocktick -o dist/clocktick.js",
"test": "node test | tap-spec"

@@ -23,2 +24,3 @@ },

"devDependencies": {
"browserify": "^5.10.1",
"tap-spec": "^0.2.1",

@@ -25,0 +27,0 @@ "tape": "^2.14.0"

# clocktick
Clock-accurate timeout for Node.js and browser.
Basically it is identical to setTimeout, but it triggers callback function precisely on every second.
Basically it is identical to setTimeout, but it triggers callback function precisely on the next second.
## example
See an example [here](http://pakastin.github.io/clocktick)
## accuracy

@@ -12,7 +15,2 @@ Accuracy should be around 1–2ms.

## testing
npm install clocktick --dev
npm test clocktick
## usage

@@ -42,1 +40,12 @@ Usage is similar to setTimeout, but without delay parameter:

clearTimeout(timeout)
## testing
Clone to desktop and then run following commands at clocktick folder:
npm install
npm test
## building
npm install
npm run build