Skip to content

Commit

Permalink
basic timing of sandbox
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Newland committed Jan 6, 2024
1 parent e5d5223 commit 94a15d8
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -197,9 +197,13 @@ public void runSandbox(String language, List<File> compileList, File fileToRun)

lastProcess = runtime;

long start = System.currentTimeMillis();

boolean executionSuccess = executeClass(fqClassNameToRun, runtime, logParser.getConfig().isSandboxIntelMode());

logListener.handleLogEntry("Execution success: " + executionSuccess);
long stop = System.currentTimeMillis();

logListener.handleLogEntry("Execution success: " + executionSuccess + " in " + (stop - start) + "ms");

if (executionSuccess)
{
Expand Down

0 comments on commit 94a15d8

Please sign in to comment.