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