Skip to content

Commit

Permalink
Accidently removed try..ctach
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomSerg committed Jun 11, 2024
1 parent 839a319 commit 5c6ddbd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions xcsp3/perf_timer.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,10 @@ def __exit__(self, exc_type, exc_value, traceback):
self.end = time.time()
set_timer_context(None)

# try:
perf_context.add_time_measurement(self.label, self.end - self.start)
# except:
# pass
try:
perf_context.add_time_measurement(self.label, self.end - self.start)
except:
pass

@property
def time(self):
Expand Down

0 comments on commit 5c6ddbd

Please sign in to comment.