Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added method .every(nanosecond, callback)

  • Loading branch information...
commit 5540910cfaab449eb45f1cbf43dfcfa92be92464 1 parent 342e575
NHQ SERVER ADMIN authored
Showing with 1 addition and 4 deletions.
  1. +1 −4 index.js
View
5 index.js
@@ -32,7 +32,7 @@ T.prototype.every = function(ns, fn){
function tock(){
var ns = nanos(process.hrtime(self.beat))
-// console.log(ns)
+
if (ns > int){
self.beat = process.hrtime();
fn(tick, ns)
@@ -47,9 +47,6 @@ function nanos(arr){
return arr[0] * 1e9 + arr[1]
}
-function seconds(arr){
- return arr[0] + (1e9 / arr[1])
-}
function add(a, b){
var ns = a[1] + b[1];
b[0] += a[0];
Please sign in to comment.
Something went wrong with that request. Please try again.