From 3ca8b453088ac6fb815e2f39c9a705b49bfb188c Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Wed, 7 Oct 2020 10:09:41 -0400 Subject: Revert "Use monotonic time for pool age measurement" This reverts commit 0220b58917b5a979891b5765f6ac5095e0368489. I completely misread https://www.python.org/dev/peps/pep-0418/#rationale and the accuracy of monotonic() is *worse* on windows than time.time(), which is bizarre. Change-Id: I2d571e268a2051bea68736507773d3904403af9e --- lib/sqlalchemy/util/compat.py | 3 --- 1 file changed, 3 deletions(-) (limited to 'lib/sqlalchemy/util/compat.py') diff --git a/lib/sqlalchemy/util/compat.py b/lib/sqlalchemy/util/compat.py index b94ea353e..d3fefa526 100644 --- a/lib/sqlalchemy/util/compat.py +++ b/lib/sqlalchemy/util/compat.py @@ -109,8 +109,6 @@ if py3k: from io import StringIO from itertools import zip_longest from time import perf_counter - from time import monotonic as monotonic_time - from urllib.parse import ( quote_plus, unquote_plus, @@ -209,7 +207,6 @@ else: from cStringIO import StringIO as byte_buffer # noqa from itertools import izip_longest as zip_longest # noqa from time import clock as perf_counter # noqa - from time import time as monotonic_time # noqa from urllib import quote # noqa from urllib import quote_plus # noqa from urllib import unquote # noqa -- cgit v1.2.1