Skip to content

Commit

Permalink
use context to end timer
Browse files Browse the repository at this point in the history
  • Loading branch information
Berserker66 committed Nov 14, 2023
1 parent d8be708 commit 7b5b50b
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions test/benchmark/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ def __enter__(self):
self.timer = time.perf_counter()
return self

def end(self):
self.end_timer = time.perf_counter()

@property
def dif(self):
return self.end_timer - self.timer
Expand Down Expand Up @@ -68,7 +65,6 @@ def location_test(self, test_location: Location, state: CollectionState, state_n
# if time is taken to disentangle complex ref chains,
# this time should be attributed to the rule.
gc.collect()
t.end()
return t.dif

def main(self):
Expand Down

0 comments on commit 7b5b50b

Please sign in to comment.