UNPKG

juno-console

Version:

Juno is a clean and lightweight 2D game framework written in TypeScript for making tiny HTML5 Games.

17 lines (16 loc) 745 B
/** * @author Digitsensitive <digit.sensitivee@gmail.com> * @copyright 2018 Digitsensitive * @description Juno: Performance Now * * The most basic implementation of getting the elapsed time in milliseconds * since time origin (time user has opened the browser window). * * References: * https://developer.mozilla.org/en-US/docs/Web/API/Performance/now (Date: 2018-09-09) * https://www.w3schools.com/jsref/jsref_gettime.asp (Date: 2018-09-09) * https://developers.google.com/web/updates/2012/08/When-milliseconds-are-not-enough-performance-now (Date: 2018-09-09) * * @license {@link https://github.com/digitsensitive/juno-console/blob/master/license.txt|MIT License} */ export declare function ElapsedTime(): number;