Set CLOCK_MONOTONIC for Solaris
Setting CLOCK_MONOTONIC = 4 as defined in the Solaris time_impl.h header file. $ python -c "import sys; print sys.platform" sunos5 $ grep MONOTONIC /usr/include/sys/time_impl.h #define CLOCK_MONOTONIC 4 /* high resolution monotonic clock */ #define CLOCK_HIGHRES CLOCK_MONOTONIC /* alternate name */
This commit is contained in:
parent
7a90ceeb2b
commit
d296148956
|
@ -118,6 +118,8 @@ except AttributeError:
|
|||
CLOCK_MONOTONIC = 1
|
||||
elif sys.platform.startswith('freebsd'):
|
||||
CLOCK_MONOTONIC = 4
|
||||
elif sys.platform.startswith('sunos5'):
|
||||
CLOCK_MONOTONIC = 4
|
||||
elif 'bsd' in sys.platform:
|
||||
CLOCK_MONOTONIC = 3
|
||||
|
||||
|
|
Loading…
Reference in New Issue