Skip to content

Commit

Permalink
Update logging
Browse files Browse the repository at this point in the history
  • Loading branch information
BSteffaniak committed Jul 12, 2022
1 parent 2c8fba9 commit df96045
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/main/org/flatlang/Flat.java
Original file line number Diff line number Diff line change
Expand Up @@ -593,24 +593,24 @@ private void createSyntaxTree(boolean generateCode)
long time = System.currentTimeMillis();
long newTime = time;

log("Generating output... ", false);
log("Generating output...");
codeGeneratorEngine.generateOutput();
log("took " + ((newTime = System.currentTimeMillis()) - time) + "ms");
log("Generating output took " + ((newTime = System.currentTimeMillis()) - time) + "ms");
time = newTime;

log("Inserting main method... ", false);
log("Inserting main method...");
codeGeneratorEngine.insertMainMethod();
log("took " + ((newTime = System.currentTimeMillis()) - time) + "ms");
log("Inserting main method took " + ((newTime = System.currentTimeMillis()) - time) + "ms");
time = newTime;

log("Formatting output... ", false);
log("Formatting output...");
codeGeneratorEngine.formatOutput();
log("took " + ((newTime = System.currentTimeMillis()) - time) + "ms");
log("Formatting output took " + ((newTime = System.currentTimeMillis()) - time) + "ms");
time = newTime;

log("Writing files... ");
log("Writing files...");
codeGeneratorEngine.writeFiles();
log("took " + ((newTime = System.currentTimeMillis()) - time) + "ms");
log("Writing files took " + ((newTime = System.currentTimeMillis()) - time) + "ms");
time = newTime;

}
Expand Down

0 comments on commit df96045

Please sign in to comment.