mirror of https://github.com/nodejs/node.git
15 lines
242 B
JavaScript
15 lines
242 B
JavaScript
|
var common = require('../common');
|
||
|
var assert = require('assert');
|
||
|
|
||
|
var t = Date.now();
|
||
|
var diff;
|
||
|
setTimeout(function () {
|
||
|
diff = Date.now() - t;
|
||
|
console.error(diff);
|
||
|
}, 0.1);
|
||
|
|
||
|
|
||
|
process.on('exit', function() {
|
||
|
assert.ok(diff < 10);
|
||
|
});
|