Add support for IBM AIX
In IBM AIX, CLOCK_MONOTONIC has value 10 and clockid_t type is long long.
This commit is contained in:
parent
8447153178
commit
c50305e7f0
@ -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."""
|
||||
|
Loading…
x
Reference in New Issue
Block a user