summaryrefslogtreecommitdiff
path: root/bedrock.js
diff options
context:
space:
mode:
Diffstat (limited to 'bedrock.js')
-rw-r--r--bedrock.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/bedrock.js b/bedrock.js
index a0155e7..0022346 100644
--- a/bedrock.js
+++ b/bedrock.js
@@ -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 = () => {