Add support for IBM AIX

In IBM AIX, CLOCK_MONOTONIC has value 10 and clockid_t type is long long.
master
bthery 6 years ago committed by GitHub
parent 8447153178
commit c50305e7f0
  1. 2
      monotonic.py

@ -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…
Cancel
Save