diff --git a/README.md b/README.md index 563bff7852033c940d23d8ab505db30cd00877c8..68b70b9373c9c69a31055c0f0d5c9f4dd562beb3 100644 --- a/README.md +++ b/README.md @@ -21,10 +21,10 @@ Satella contains, among other things: * a fully equipped [metrics library](satella/instrumentation/metrics) * alongside a fully metricized [ThreadPoolExecutor](satella/instrumentation/metrics/structures/threadpool.py) * helpful [exception handlers](satella/exception_handling) -* common programming [idioms](satella/coding) +* common programming [idioms and structures](satella/coding) -Most Satella objects make heavy use of `__slots__`, so they are memory friendly and usable on embedded systems, -where memory is at premium. +Most Satella objects make heavy use of `__slots__`, so they are memory friendly and usable on +embedded systems, where memory is at premium. Change log is kept as part of [release notes](https://github.com/piotrmaslanka/satella/releases). The [CHANGELOG.md](CHANGELOG.md) file is only to track changes since last release. @@ -37,6 +37,11 @@ code taken from elsewhere on the internets, so this is copyright (c) respective # Running unit tests +Tests run by default on +[Travis CI](https://travis-ci.org/github/piotrmaslanka/satella). Just build and run the attached [Dockerfile](Dockerfile). -These tests run on Python 3.8 \ No newline at end of file +These tests run on Python 3.8 + +They pass on Windows too, but some tests +requiring POSIX-like functionality are skipped. diff --git a/satella/__init__.py b/satella/__init__.py index e7849d36df2a6ef9acabf19a633d7b89e565cae3..b21b204a528ecc6ccd64944b3c15121b096d2226 100644 --- a/satella/__init__.py +++ b/satella/__init__.py @@ -1 +1 @@ -__version__ = '2.8.15_a1' +__version__ = '2.8.15_a2' diff --git a/satella/time.py b/satella/time.py index 33a13ba3d90ca153bbf415a7bd197d7511a21131..ac571d996ff8657f0482fec8aa718eb868959222 100644 --- a/satella/time.py +++ b/satella/time.py @@ -60,6 +60,14 @@ def time_ms() -> int: def time_us() -> int: + """ + Syntactic sugar for + + >>> from time import time + >>> int(time()*1000000) + + This will try to use time.time_ns() if available + """ try: return time.time_ns() // 1000 except AttributeError: