Skip to content
This repository has been archived by the owner on Apr 10, 2021. It is now read-only.

Commit

Permalink
1.0
Browse files Browse the repository at this point in the history
- 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
atdt committed Mar 4, 2016
1 parent 8a1da06 commit 54ccfc8
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 25 deletions.
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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.
Expand All @@ -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/
20 changes: 10 additions & 10 deletions monotonic.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -42,8 +42,8 @@
import ctypes.util
import os
import sys
import time
import threading
import time


__all__ = ('monotonic',)
Expand Down
20 changes: 10 additions & 10 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -31,15 +31,15 @@

setup(
name='monotonic',
version='0.6',
version='1.0',
license='Apache',
author='Ori Livneh',
author_email='[email protected]',
url='https:/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',
Expand Down

0 comments on commit 54ccfc8

Please sign in to comment.