Skip to content

Commit

Permalink
Log remaining solve time
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomSerg committed Jun 6, 2024
1 parent 56327bb commit 7029957
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion xcsp3/executable/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,8 @@ def run_helper(args:Args):

# Solve model
time_limit = args.time_limit - (time.time() - parse_start) - args.time_buffer if args.time_limit is not None else None

print_comment(f"{time_limit}s left to solve")

# If not time left
if time_limit is not None and time_limit <= 0:
# Not enough time to start a solve call (we're already over the limit)
Expand Down

0 comments on commit 7029957

Please sign in to comment.