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:
Albert White 2015-07-15 11:39:29 +01:00
parent 7a90ceeb2b
commit d296148956
1 changed files with 2 additions and 0 deletions

View File

@ -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