Skip to content

Commit

Permalink
round runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
Tahiatul Islam committed Apr 12, 2024
1 parent 1044838 commit 550fdfa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ def performEvaluation(issue_data, isJarMode = False) -> Result:
result = run_specimin(issue_id ,specimin_command, specimin_path)
end_time = time.time()

duration = end_time - start_time
duration = round(end_time - start_time)

global run_time
run_time[f"{issue_id}"] = duration
Expand Down Expand Up @@ -840,6 +840,7 @@ def main():
global run_time
print(json.dumps(run_time))
mean_runtime = statistics.mean(list(run_time.values()))
mean_runtime = round(mean_runtime)
print(f"Avg runtime = {mean_runtime}")

print("\n\n\n\n")
Expand Down

0 comments on commit 550fdfa

Please sign in to comment.