From ae7be9e357038058716c5f8f85dfa4c5df8b0150 Mon Sep 17 00:00:00 2001 From: n loewen Date: Tue, 25 Jul 2023 19:01:27 +0100 Subject: [PATCH] Print header with timestamp when running --- simulator-sketch.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/simulator-sketch.js b/simulator-sketch.js index c7d9c54..84b1c26 100644 --- a/simulator-sketch.js +++ b/simulator-sketch.js @@ -188,7 +188,10 @@ function CPU(mem) { this.run_program = () => { console.log(); - console.log( "Running program..." ); + console.log("————————————————————————————————————————"); + let time = new Date(); + console.log( `Running at ${time.toLocaleTimeString('en-US')}` ); + console.log("————————————————————————————————————————"); log_debug_state(); this.running = true;