Skip to content

Commit

Permalink
Small nits
Browse files Browse the repository at this point in the history
  • Loading branch information
jesse-wei committed Oct 15, 2024
1 parent ed713b4 commit 5720968
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
7 changes: 3 additions & 4 deletions src/main/java/com/comp541/GUI/ExecuteAllThrottled.java
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,9 @@ public void run() {
}

long delta = executionStopwatch.getTimeElapsed() / 1000;
LOGGER.info("Time: " + delta + "s");
LOGGER.info("Mips instructions executed: " + totalInstructionsExecuted);
LOGGER.info(
"Throttled clock speed (avg): " + totalInstructionsExecuted / 1000000.0 / delta + " MHz");
LOGGER.info("Time: {}s", delta);
LOGGER.info("Mips instructions executed: {}", totalInstructionsExecuted);
LOGGER.info("Throttled clock speed (avg): {} MHz", totalInstructionsExecuted / 1000000.0 / delta);
}

/**
Expand Down
3 changes: 0 additions & 3 deletions src/main/java/com/comp541/mips/ProgramLoader.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,6 @@ public ProgramLoader(File file) throws IOException {
}

private Mips loadMipsFromFile(File file) throws IOException {
// TODO: We have not yet implemented sound but will do so soon (TM)
// SoundModule.waveOut.stop();

String json = Files.readString(file.toPath());
JSONObject project = new JSONObject(json);

Expand Down

0 comments on commit 5720968

Please sign in to comment.