bthery
c50305e7f0
Add support for IBM AIX
...
In IBM AIX, CLOCK_MONOTONIC has value 10 and clockid_t type is long long.
6 years ago
Marcus Furlong
e736ba2f2f
fix 'No such file or directory' error on cygwin
...
closes #18
7 years ago
Ori Livneh
54ccfc8a9f
1.0
...
- Update 'Development Status' trove classifier to 'Production/Stable'
- Update README.md to include a link to the MSDN reference page for
GetTickCount.
- Alphabetize imports.
7 years ago
Ori Livneh
a5b0245604
Merge pull request #14 from DoomMuffins/winxp
...
Added support for pre-Vista Windows versions using GetTickCount
7 years ago
Erik Olof Gunnar Andersson
a36e31abfd
regex module no longer needed
7 years ago
Itay Bookstein
8206bb7df4
Changed AttributeError flow control to getattr-with-default-argument
7 years ago
Itay Bookstein
624fa6e062
Added support for pre-Vista Windows versions using GetTickCount
7 years ago
Ori Livneh
d261cf6808
Remove get_os_release() / compare_versions()
...
The sole purpose of these functions was to determine whether or not
to use CLOCK_MONOTONIC_RAW (which is available on Linux 2.6.3+). Since we are
no longer using CLOCK_MONOTONIC_RAW, they are not necessary.
7 years ago
Ori Livneh
a29eb9448c
Merge pull request #13 from haypo/no_raw
...
Don't use CLOCK_MONOTONIC_RAW
7 years ago
Victor Stinner
dc00298427
Don't use CLOCK_MONOTONIC_RAW
...
CLOCK_MONOTONIC_RAW doesn't fit into time.monotonic() requirements:
it doesn't use seconds. CLOCK_MONOTONIC is what uses expect for a
monotonic clock using seconds.
For the longer rationale, see the PEP 418:
https://www.python.org/dev/peps/pep-0418/#clock-monotonic-clock-monotonic-raw-clock-boottime
7 years ago
Victor Stinner
20081340a8
clock_gettime() is not thread-safe
...
Don't use a global variable in clock_gettime(). Create a new timespec
object for each call to clock_gettime().
7 years ago
Demitri Swan
ea67804cb0
Adding the full path fixes for 10.11
7 years ago
Ori Livneh
5d94d5547b
Merge pull request #7 from albertw/master
...
Set CLOCK_MONOTONIC for Solaris
8 years ago
Marcus Furlong
cc9170147c
Add support for cygwin
8 years ago
Albert White
d296148956
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 */
8 years ago
Ori Livneh
1e0c8a3de5
On Linux >2.6.28, use CLOCK_MONOTONIC_RAW
...
Closes #1
8 years ago
Alessandro Pilotti
d5dd587059
Fixes issue when performing sanity checks
...
The sanity check fails as monotonic() - monotonic() can return 0.0.
This is a blocking issue that has been observed on Windows.
Closes issue: #2
8 years ago
Ori Livneh
1ff1ba9f75
Initial commit
8 years ago