diff --git a/pytensor/link/c/cmodule.py b/pytensor/link/c/cmodule.py index 40253f199e..f7389231ef 100644 --- a/pytensor/link/c/cmodule.py +++ b/pytensor/link/c/cmodule.py @@ -806,7 +806,7 @@ def rmtree_empty(*args, **kwargs): to_delete_empty.append((args, kwargs)) # add entries that are not in the entry_from_key dictionary - time_now = time.perf_counter() + time_now = time.time() # Go through directories in alphabetical order to ensure consistent # behavior. try: @@ -976,7 +976,7 @@ def unpickle_failure(): # directories in alphabetical order so as to make # sure all new processes only use the first one. if cleanup: - age = time.perf_counter() - last_access_time(entry) + age = time.time() - last_access_time(entry) if delete_if_problem or age > self.age_thresh_del: rmtree( root, @@ -1528,7 +1528,7 @@ def clear_unversioned(self, min_age=None): assert key[0] to_del = [] - time_now = time.perf_counter() + time_now = time.time() for filename in os.listdir(self.dirname): if filename.startswith("tmp"): try: