diff options
-rw-r--r-- | bedrock.js | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -1130,6 +1130,7 @@ function Bedrock(e) { this.wst = new Stack(); this.rst = new Stack(); this.dev = new DeviceBus(this); + this.mark = performance.now(); // Callback functions. this.onUpdate; @@ -1153,6 +1154,8 @@ function Bedrock(e) { this.mem.fill(0); this.mem.set(bytecode.slice(0, 65536)); this.blank = false; + this.mark = performance.now(); + console.log("Started new run"); } this.run = () => { @@ -1197,6 +1200,7 @@ function Bedrock(e) { this.halted = true; this.update(); this.render(); + console.log("Run completed in", performance.now() - this.mark, "milliseconds"); } this.sleep = () => { |