UNPKG

typescript-closure-tools

Version:

Command-line tools to convert closure-style JSDoc annotations to typescript, and to convert typescript sources to closure externs files

22 lines (13 loc) 394 B
/// <reference path="stats.d.ts" /> var stats = new Stats(); stats.setMode(1); // 0: fps, 1: ms // Align top-left stats.domElement.style.position = 'absolute'; stats.domElement.style.left = '0px'; stats.domElement.style.top = '0px'; document.body.appendChild( stats.domElement ); setInterval( function () { stats.begin(); // your code goes here stats.end(); }, 1000 / 60 );