Skip to content

Commit

Permalink
Quick fix on __load_time_ms since Py3.6 doesn't have perf_counter_ns
Browse files Browse the repository at this point in the history
  • Loading branch information
hugsy committed Jun 27, 2022
1 parent b2458d6 commit 2b72f5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gef.py
Expand Up @@ -9475,7 +9475,7 @@ def load(self) -> None:
current_functions = set( self.functions.keys() )
new_functions = set([x._function_ for x in __registered_functions__]) - current_functions
self.missing.clear()
self.__load_time_ms = time.perf_counter_ns()
self.__load_time_ms = time.time()* 1000

# load all new functions
for name in sorted(new_functions):
Expand Down Expand Up @@ -9503,7 +9503,7 @@ def load(self) -> None:
except Exception as reason:
self.missing[name] = reason

self.__load_time_ms = (time.perf_counter_ns() - self.__load_time_ms) / 1000
self.__load_time_ms = (time.time()* 1000) - self.__load_time_ms
return


Expand Down

0 comments on commit 2b72f5d

Please sign in to comment.