Sha256: 4f71c745749a62ccb7cf4ede238730e940cf73e008460a69e414f61506b44feb

Contents?: true

Size: 314 Bytes

Versions: 73

Compression:

Stored size: 314 Bytes

Contents

var timers = require('timers');

var obj = {
  _onTimeout: function() {
    console.log('Timer ran for: ' + (new Date().getTime() - obj.now) + ' ms');
  },
  start: function() {
    console.log('Timer should run for 100 ms');
    this.now = new Date().getTime();
    timers.enroll(this, 100);
  }
};

obj.start();

Version data entries

73 entries across 73 versions & 5 rubygems

Version Path
minimum_viable_product-0.0.11 test/dummy/node_modules/timers-browserify/example/enroll/js/main.js
brwy_rails-0.0.6 test/dummy/node_modules/timers-browserify/example/enroll/js/main.js
brwy_rails-0.0.5 test/dummy/node_modules/timers-browserify/example/enroll/js/main.js
brwy_rails-0.0.4 test/dummy/node_modules/timers-browserify/example/enroll/js/main.js
brwy_rails-0.0.3 test/dummy/node_modules/timers-browserify/example/enroll/js/main.js
brwy_rails-0.0.2 test/dummy/node_modules/timers-browserify/example/enroll/js/main.js
brwy_rails-0.0.1 test/dummy/node_modules/timers-browserify/example/enroll/js/main.js
gulp_assets-1.0.0.pre.5 template/node_modules/node-libs-browser/node_modules/timers-browserify/example/enroll/js/main.js
gulp_assets-1.0.0.pre.4 template/node_modules/node-libs-browser/node_modules/timers-browserify/example/enroll/js/main.js
gulp_assets-1.0.0.pre.3 template/node_modules/node-libs-browser/node_modules/timers-browserify/example/enroll/js/main.js
smock-0.1.268 node_modules/webpack/node_modules/node-libs-browser/node_modules/timers-browserify/example/enroll/js/main.js
smock-0.1.267 node_modules/webpack/node_modules/node-libs-browser/node_modules/timers-browserify/example/enroll/js/main.js
smock-0.1.266 node_modules/webpack/node_modules/node-libs-browser/node_modules/timers-browserify/example/enroll/js/main.js
smock-0.1.265 node_modules/webpack/node_modules/node-libs-browser/node_modules/timers-browserify/example/enroll/js/main.js
smock-0.1.264 node_modules/webpack/node_modules/node-libs-browser/node_modules/timers-browserify/example/enroll/js/main.js
smock-0.1.263 node_modules/webpack/node_modules/node-libs-browser/node_modules/timers-browserify/example/enroll/js/main.js
smock-0.1.262 node_modules/webpack/node_modules/node-libs-browser/node_modules/timers-browserify/example/enroll/js/main.js
smock-0.1.261 node_modules/webpack/node_modules/node-libs-browser/node_modules/timers-browserify/example/enroll/js/main.js
smock-0.1.260 node_modules/webpack/node_modules/node-libs-browser/node_modules/timers-browserify/example/enroll/js/main.js
smock-0.1.259 node_modules/webpack/node_modules/node-libs-browser/node_modules/timers-browserify/example/enroll/js/main.js