Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var counter = 0;
- setInterval(function() {
- console.log(counter);
- counter = 0;
- }, 1000);
- function loop()
- {
- counter++;
- process.nextTick(function() { loop(); });
- // setTimeout(loop, 0);
- }
- loop();
Add Comment
Please, Sign In to add comment