Skip to content

Commit

Permalink
replace time.clock with perf_counter for py3
Browse files Browse the repository at this point in the history
  • Loading branch information
frostming committed Mar 11, 2019
1 parent 500e732 commit 2396a0a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion flask_sqlalchemy/__init__.py
Expand Up @@ -36,7 +36,10 @@

# the best timer function for the platform
if sys.platform == 'win32':
_timer = time.clock
if sys.version_info >= (3, 3):
_timer = time.perf_counter
else:
_timer = time.clock
else:
_timer = time.time

Expand Down

0 comments on commit 2396a0a

Please sign in to comment.