function millisecondsSinceLastFrame() {
        var timeThisFrame = Date.now(),
            millisecondsSinceLastFrame = 0;

        if (!timeLastFrame) {
            timeLastFrame = timeThisFrame;
        }

        millisecondsSinceLastFrame = timeThisFrame - timeLastFrame;
        timeLastFrame = timeThisFrame;
        return millisecondsSinceLastFrame;
    }
/**
     * Returns the number of milliseconds since the last frame.
     * @method millisecondsSinceLastFrame
     * @return {int} Number of milliseconds since the last frame.
     */
Returns the number of milliseconds since the last frame.
@method millisecondsSinceLastFrame
@return {int} Number of milliseconds since the last frame.
Returns the number of milliseconds since the last frame . @method millisecondsSinceLastFrame @return { int } Number of milliseconds since the last frame .
function millisecondsSinceLastFrame() {
        var timeThisFrame = Date.now(),
            millisecondsSinceLastFrame = 0;
        if (!timeLastFrame) {
            timeLastFrame = timeThisFrame;
        }
        millisecondsSinceLastFrame = timeThisFrame - timeLastFrame;
        timeLastFrame = timeThisFrame;
        return millisecondsSinceLastFrame;
    }
function millisecondsSinceLastFrame ( ) { var timeThisFrame = Date . now ( ) , millisecondsSinceLastFrame = 0 ; if ( ! timeLastFrame ) { timeLastFrame = timeThisFrame ; } millisecondsSinceLastFrame = timeThisFrame - timeLastFrame ; timeLastFrame = timeThisFrame ; return millisecondsSinceLastFrame ; }
Returns the number of milliseconds since the last frame.
Returns the number of milliseconds since the last frame .