Skip to content

Commit 213de70

Browse files
committed
Add monotonic for <py3.3, win32, cygwin, older windows
1 parent 8a71757 commit 213de70

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

autotime/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
from __future__ import print_function
22

3-
from time import monotonic
3+
try:
4+
from time import monotonic
5+
except ImportError:
6+
from monotonic import monotonic
47

58
from IPython.core.magics.execution import _format_time as format_delta
69

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
description='Time everything in IPython',
1818
long_description=long_description,
1919
license='Apache',
20-
install_requires=['ipython'],
20+
install_requires=['ipython', 'monotonic ; python_version < "3.3"'],
2121
classifiers=[
2222
'Environment :: Console',
2323
'Intended Audience :: Developers',

0 commit comments

Comments
 (0)