import codecs
import random
import re
-import time
import weakref
from . import cursor as _cursor
if self.compiled is None:
return "raw sql"
- now = time.time()
+ now = util.perf_counter()
if self.compiled.cache_key is None:
return "no key %.5fs" % (now - self.compiled._gen_time,)
elif self.cache_hit:
import itertools
import operator
import re
-import time
from . import base
from . import coercions
self.string = self.preparer._render_schema_translates(
self.string, schema_translate_map
)
- self._gen_time = time.time()
+ self._gen_time = util.perf_counter()
def _execute_on_connection(
self, connection, multiparams, params, execution_options
from .compat import namedtuple # noqa
from .compat import next # noqa
from .compat import parse_qsl # noqa
+from .compat import perf_counter # noqa
from .compat import pickle # noqa
from .compat import print_ # noqa
from .compat import py2k # noqa
from io import BytesIO as byte_buffer
from io import StringIO
from itertools import zip_longest
+ from time import perf_counter
from urllib.parse import (
quote_plus,
unquote_plus,
from StringIO import StringIO # noqa
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 urllib import quote # noqa
from urllib import quote_plus # noqa
from urllib import unquote # noqa