Sha256: 4718b38532838e3b8ea7cfa3f4bd2fb9283e062cbb2af18d3a71cb5c19d4ae45

Contents?: true

Size: 405 Bytes

Versions: 5

Compression:

Stored size: 405 Bytes

Contents

'use strict';
require('../common');
var assert = require('assert');

console.error(process.uptime());
assert.ok(process.uptime() <= 2);

var original = process.uptime();

setTimeout(function() {
  var uptime = process.uptime();
  // some wiggle room to account for timer
  // granularity, processor speed, and scheduling
  assert.ok(uptime >= original + 2);
  assert.ok(uptime <= original + 3);
}, 2000);

Version data entries

5 entries across 4 versions & 1 rubygems

Version Path
node-compiler-0.9.1 vendor/node/test/pummel/test-process-uptime.js
node-compiler-0.9.0 vendor/node-v7.2.1/test/pummel/test-process-uptime.js
node-compiler-0.8.0 vendor/node-v7.2.0/test/pummel/test-process-uptime.js
node-compiler-0.7.0 vendor/node-v6.9.1/test/pummel/test-process-uptime.js
node-compiler-0.7.0 vendor/node-v7.1.0/test/pummel/test-process-uptime.js