Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function animate() {
- var last = Date.now(), now, frameTime;
- function frame() {
- now = Date.now();
- frameTime = now - last;
- last = now;
- console.log( frameTime );
- requestAnimationFrame( frame );
- }
- frame();
- }
- animate();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement