This repository has been archived by the owner on Apr 10, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Update 'Development Status' trove classifier to 'Production/Stable' - Update README.md to include a link to the MSDN reference page for GetTickCount. - Alphabetize imports.
- Loading branch information
Showing
3 changed files
with
26 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,9 +9,9 @@ On Python 3.3 or newer, ``monotonic`` will be an alias of | |
it will fall back to an equivalent implementation: | ||
|
||
OS | Implementation | ||
-------------|------------------------- | ||
-------------|----------------------------------------- | ||
Linux, *BSD | [clock_gettime][1] | ||
Windows | [GetTickCount[64]][2] | ||
Windows | [GetTickCount][2] or [GetTickCount64][3] | ||
OS X | [mach_absolute_time][3] | ||
|
||
If no suitable implementation exists for the current platform, | ||
|
@@ -23,7 +23,7 @@ monotonic is available via the Python Cheese Shop (PyPI): | |
|
||
License | ||
------- | ||
Copyright 2014-2016 Ori Livneh <[email protected]> | ||
Copyright 2014, 2015, 2016 Ori Livneh <[email protected]> | ||
|
||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
|
@@ -39,5 +39,6 @@ limitations under the License. | |
|
||
[0]: https://docs.python.org/3/library/time.html#time.monotonic | ||
[1]: http://linux.die.net/man/3/clock_gettime | ||
[2]: http://msdn.microsoft.com/en-us/library/windows/desktop/ms724411 | ||
[3]: https://developer.apple.com/library/mac/qa/qa1398/ | ||
[2]: https://msdn.microsoft.com/en-us/library/windows/desktop/ms724408 | ||
[3]: https://msdn.microsoft.com/en-us/library/windows/desktop/ms724411 | ||
[4]: https://developer.apple.com/library/mac/qa/qa1398/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,20 +10,20 @@ | |
``time.monotonic`` from the standard library. On older versions, | ||
it will fall back to an equivalent implementation: | ||
+-------------+--------------------+ | ||
| Linux, BSD | clock_gettime(3) | | ||
+-------------+--------------------+ | ||
| Windows | GetTickCount[64] | | ||
+-------------+--------------------+ | ||
| OS X | mach_absolute_time | | ||
+-------------+--------------------+ | ||
+-------------+----------------------------------------+ | ||
| Linux, BSD | ``clock_gettime(3)`` | | ||
+-------------+----------------------------------------+ | ||
| Windows | ``GetTickCount`` or ``GetTickCount64`` | | ||
+-------------+----------------------------------------+ | ||
| OS X | ``mach_absolute_time`` | | ||
+-------------+----------------------------------------+ | ||
If no suitable implementation exists for the current platform, | ||
attempting to import this module (or to import from it) will | ||
cause a RuntimeError exception to be raised. | ||
cause a ``RuntimeError`` exception to be raised. | ||
Copyright 2014 Ori Livneh <[email protected]> | ||
Copyright 2014, 2015, 2016 Ori Livneh <[email protected]> | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
|
@@ -42,8 +42,8 @@ | |
import ctypes.util | ||
import os | ||
import sys | ||
import time | ||
import threading | ||
import time | ||
|
||
|
||
__all__ = ('monotonic',) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,17 +10,17 @@ | |
``time.monotonic`` from the standard library. On older versions, | ||
it will fall back to an equivalent implementation: | ||
+-------------+--------------------+ | ||
| Linux, BSD | clock_gettime(3) | | ||
+-------------+--------------------+ | ||
| Windows | GetTickCount[64] | | ||
+-------------+--------------------+ | ||
| OS X | mach_absolute_time | | ||
+-------------+--------------------+ | ||
+-------------+----------------------------------------+ | ||
| Linux, BSD | ``clock_gettime(3)`` | | ||
+-------------+----------------------------------------+ | ||
| Windows | ``GetTickCount`` or ``GetTickCount64`` | | ||
+-------------+----------------------------------------+ | ||
| OS X | ``mach_absolute_time`` | | ||
+-------------+----------------------------------------+ | ||
If no suitable implementation exists for the current platform, | ||
attempting to import this module (or to import from it) will | ||
cause a RuntimeError exception to be raised. | ||
cause a ``RuntimeError`` exception to be raised. | ||
""" | ||
try: | ||
|
@@ -31,15 +31,15 @@ | |
|
||
setup( | ||
name='monotonic', | ||
version='0.6', | ||
version='1.0', | ||
license='Apache', | ||
author='Ori Livneh', | ||
author_email='[email protected]', | ||
url='https://github.com/atdt/monotonic', | ||
description='An implementation of time.monotonic() for Python 2 & < 3.3', | ||
long_description=__doc__, | ||
classifiers=( | ||
'Development Status :: 4 - Beta', | ||
'Development Status :: 5 - Production/Stable', | ||
'License :: OSI Approved :: Apache Software License', | ||
'Programming Language :: Python :: 2', | ||
'Programming Language :: Python :: 3', | ||
|