From f0841734653ed9e785623d0c334b178c91491275 Mon Sep 17 00:00:00 2001 From: aspwil Date: Tue, 3 Nov 2020 07:22:47 -0700 Subject: [PATCH] 1.0.4 update fixed display of sim time --- src/ndballsim/Main.java | 2 +- src/ndballsim/Simulator.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ndballsim/Main.java b/src/ndballsim/Main.java index b6d7666..a0950c6 100644 --- a/src/ndballsim/Main.java +++ b/src/ndballsim/Main.java @@ -11,7 +11,7 @@ public static void main(String[] args) { boolean log = false; boolean info = false; int max = 10000; - String version = "V1.0.3"; + String version = "V1.0.4"; String help = "NDBall Simulator " + version + "\n" + "Commands are formated like this:\n" + "[flags] (file containing code)\n" diff --git a/src/ndballsim/Simulator.java b/src/ndballsim/Simulator.java index 66fff66..3ed7c45 100644 --- a/src/ndballsim/Simulator.java +++ b/src/ndballsim/Simulator.java @@ -14,9 +14,9 @@ public class Simulator { // ... the code being measured ... public static void run(String file, int max, boolean doLog, boolean step, boolean infoTag) { - long startTime = System.nanoTime();//start measuring parcer time + long parseStartTime = System.nanoTime();//start measuring parcer time Instr[] instrs = Parser.parse(file);//this is the list of instructions - parseTime = System.nanoTime() - startTime;//stop measuring parcer time + parseTime = System.nanoTime() - parseStartTime;//stop measuring parcer time //begine messuring Sim time startTime = System.nanoTime();