Merge pull request #20 from bthery/master

Add support for IBM AIX
This commit is contained in:
Ori Livneh 2017-03-08 16:53:08 -05:00 committed by GitHub
commit 7ba5c45f0f
1 changed files with 2 additions and 0 deletions

View File

@ -150,6 +150,8 @@ except AttributeError:
CLOCK_MONOTONIC = 4
elif 'bsd' in sys.platform:
CLOCK_MONOTONIC = 3
elif sys.platform.startswith('aix'):
CLOCK_MONOTONIC = ctypes.c_longlong(10)
def monotonic():
"""Monotonic clock, cannot go backward."""