Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
satella
Manage
Activity
Members
Labels
Plan
Issues
1
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
public
satella
Commits
30d76c5c
Commit
30d76c5c
authored
5 years ago
by
Piotr Maślanka
Browse files
Options
Downloads
Patches
Plain Diff
docs
parent
709d3d27
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.md
+9
-4
9 additions, 4 deletions
README.md
satella/__init__.py
+1
-1
1 addition, 1 deletion
satella/__init__.py
satella/time.py
+8
-0
8 additions, 0 deletions
satella/time.py
with
18 additions
and
5 deletions
README.md
+
9
−
4
View file @
30d76c5c
...
...
@@ -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.
This diff is collapsed.
Click to expand it.
satella/__init__.py
+
1
−
1
View file @
30d76c5c
__version__
=
'
2.8.15_a
1
'
__version__
=
'
2.8.15_a
2
'
This diff is collapsed.
Click to expand it.
satella/time.py
+
8
−
0
View file @
30d76c5c
...
...
@@ -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
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment