mirror of https://github.com/lukechilds/node.git
Ryan Dahl
14 years ago
2 changed files with 15 additions and 1 deletions
@ -0,0 +1,14 @@ |
|||
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); |
|||
}); |
Loading…
Reference in new issue