function TimeLimiter(maxMilliseconds) {
        this.maxMilliseconds = maxMilliseconds;
        this.frameStart = 0;
    }
@param maxMilliseconds - The maximum milliseconds that can be spent preparing items each frame.