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