pytimer 0.0.16__tar.gz → 0.0.17__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pytimer-0.0.17/.gitignore +284 -0
- {pytimer-0.0.16 → pytimer-0.0.17}/LICENSE +1 -1
- pytimer-0.0.17/PKG-INFO +66 -0
- pytimer-0.0.17/README.md +40 -0
- pytimer-0.0.17/pyproject.toml +98 -0
- pytimer-0.0.17/src/pytimer/__init__.py +3 -0
- {pytimer-0.0.16 → pytimer-0.0.17/src}/pytimer/pytimer.py +12 -5
- {pytimer-0.0.16 → pytimer-0.0.17/src}/pytimer/static.py +1 -1
- pytimer-0.0.16/PKG-INFO +0 -42
- pytimer-0.0.16/README.rst +0 -17
- pytimer-0.0.16/pytimer/__init__.py +0 -0
- pytimer-0.0.16/pytimer.egg-info/PKG-INFO +0 -42
- pytimer-0.0.16/pytimer.egg-info/SOURCES.txt +0 -11
- pytimer-0.0.16/pytimer.egg-info/dependency_links.txt +0 -1
- pytimer-0.0.16/pytimer.egg-info/top_level.txt +0 -1
- pytimer-0.0.16/setup.cfg +0 -10
- pytimer-0.0.16/setup.py +0 -51
|
@@ -0,0 +1,284 @@
|
|
|
1
|
+
# generated
|
|
2
|
+
/toolchain/
|
|
3
|
+
/dist/
|
|
4
|
+
/out/
|
|
5
|
+
/debug/
|
|
6
|
+
/download/
|
|
7
|
+
*.out
|
|
8
|
+
/.mypy_cache/
|
|
9
|
+
/.ruff_cache/
|
|
10
|
+
/.rumdl_cache/
|
|
11
|
+
|
|
12
|
+
# folders to git ignore
|
|
13
|
+
/*.gi
|
|
14
|
+
/gi/
|
|
15
|
+
|
|
16
|
+
# gems
|
|
17
|
+
/gems/
|
|
18
|
+
|
|
19
|
+
# hive
|
|
20
|
+
derby.log
|
|
21
|
+
dfs/
|
|
22
|
+
metastore_db/
|
|
23
|
+
|
|
24
|
+
# c, c++ stuff
|
|
25
|
+
*.o
|
|
26
|
+
*.so
|
|
27
|
+
*.a
|
|
28
|
+
*.dis
|
|
29
|
+
/Makefile.bak
|
|
30
|
+
*.o.ur-safe
|
|
31
|
+
*.oo
|
|
32
|
+
*.elf
|
|
33
|
+
*.dep
|
|
34
|
+
/core.*
|
|
35
|
+
lib*.so.*
|
|
36
|
+
*.gch
|
|
37
|
+
*.pchi
|
|
38
|
+
*.gcda
|
|
39
|
+
*.map
|
|
40
|
+
*.bin
|
|
41
|
+
# cmake in-source build output; builds belong in build/ (ignored above)
|
|
42
|
+
CMakeFiles/
|
|
43
|
+
CMakeCache.txt
|
|
44
|
+
cmake_install.cmake
|
|
45
|
+
|
|
46
|
+
# kernel stuff
|
|
47
|
+
*.ko
|
|
48
|
+
# *.mod
|
|
49
|
+
*.mod.c
|
|
50
|
+
*.mod.cmd
|
|
51
|
+
.*.o.cmd
|
|
52
|
+
.*.ko.cmd
|
|
53
|
+
.*.o.tmp
|
|
54
|
+
.*.o.d
|
|
55
|
+
.tmp_versions
|
|
56
|
+
Module.symvers
|
|
57
|
+
modules.order
|
|
58
|
+
*.objdump
|
|
59
|
+
/src/kernel/.*.tmp
|
|
60
|
+
.modules.*.cmd
|
|
61
|
+
.Module.*.cmd
|
|
62
|
+
/flags.cfg
|
|
63
|
+
# device tree binary files and binary overlay files
|
|
64
|
+
*.dtb
|
|
65
|
+
*.dtbo
|
|
66
|
+
|
|
67
|
+
# sphinx
|
|
68
|
+
/docs/_build/
|
|
69
|
+
/docs/.doctrees/
|
|
70
|
+
|
|
71
|
+
# mdBook build output
|
|
72
|
+
/docs/book/
|
|
73
|
+
|
|
74
|
+
# installations
|
|
75
|
+
/external/
|
|
76
|
+
/install/
|
|
77
|
+
*.tar.gz
|
|
78
|
+
|
|
79
|
+
# python
|
|
80
|
+
__pycache__/
|
|
81
|
+
*.py[oc]
|
|
82
|
+
/wheel/
|
|
83
|
+
/.venv/
|
|
84
|
+
.coverage
|
|
85
|
+
.coverage.*
|
|
86
|
+
coverage.xml
|
|
87
|
+
*.egg-info/
|
|
88
|
+
|
|
89
|
+
# mine
|
|
90
|
+
# error files left by the bashy prompt plugins (.uv.sync.errors,
|
|
91
|
+
# .pydmt.build.errors, ...); unanchored because a sub-project's
|
|
92
|
+
# pyproject root can sit below the git root
|
|
93
|
+
.*.errors
|
|
94
|
+
/.pydmt/
|
|
95
|
+
*.stamp
|
|
96
|
+
*.stamp.*
|
|
97
|
+
|
|
98
|
+
# java
|
|
99
|
+
*.class
|
|
100
|
+
*.jar
|
|
101
|
+
*.war
|
|
102
|
+
*.ear
|
|
103
|
+
*.jsa
|
|
104
|
+
/.mtj.tmp/
|
|
105
|
+
/hs_err_pid*
|
|
106
|
+
|
|
107
|
+
# node modules
|
|
108
|
+
node_modules/
|
|
109
|
+
|
|
110
|
+
# ppt, pdf
|
|
111
|
+
/doc/odp/*.pdf
|
|
112
|
+
/doc/odp/*.ppt
|
|
113
|
+
|
|
114
|
+
# intel compiler pgo
|
|
115
|
+
*.dyn
|
|
116
|
+
*.dpi
|
|
117
|
+
# *.lock
|
|
118
|
+
|
|
119
|
+
# dwarf dynamic debug info
|
|
120
|
+
*.dwo
|
|
121
|
+
|
|
122
|
+
# locks by open office
|
|
123
|
+
.~lock.*
|
|
124
|
+
|
|
125
|
+
# haskell
|
|
126
|
+
*.hi
|
|
127
|
+
|
|
128
|
+
# clojure
|
|
129
|
+
.cpcache/
|
|
130
|
+
|
|
131
|
+
# repositries of deb packages
|
|
132
|
+
/deb/mypackage/DEBIAN/control
|
|
133
|
+
|
|
134
|
+
# generic
|
|
135
|
+
*.log
|
|
136
|
+
*.swp
|
|
137
|
+
|
|
138
|
+
# scons
|
|
139
|
+
.sconsign.dblite
|
|
140
|
+
|
|
141
|
+
# DS_Store
|
|
142
|
+
.DS_Store
|
|
143
|
+
|
|
144
|
+
# Java stuff
|
|
145
|
+
.gradle/
|
|
146
|
+
target/
|
|
147
|
+
build/
|
|
148
|
+
|
|
149
|
+
# Jupyter notebooks
|
|
150
|
+
.ipynb_checkpoints/
|
|
151
|
+
|
|
152
|
+
# c#
|
|
153
|
+
# **/obj/ and **/bin/ match at any depth, which is what .NET output needs
|
|
154
|
+
# (src/<proj>/bin, src/<proj>/obj). The un-globbed [Oo]bj/ and [Bb]in/ that
|
|
155
|
+
# used to follow were redundant with these two and are gone.
|
|
156
|
+
**/obj/
|
|
157
|
+
**/bin/
|
|
158
|
+
# perl-meta keeps real Perl sources under perl/bin/Meta/, not build output.
|
|
159
|
+
!/perl/bin/
|
|
160
|
+
|
|
161
|
+
# flash/air
|
|
162
|
+
*.swf
|
|
163
|
+
*.air
|
|
164
|
+
*.apk
|
|
165
|
+
*.ipa
|
|
166
|
+
bin-debug/
|
|
167
|
+
bin-release/
|
|
168
|
+
|
|
169
|
+
# vscode
|
|
170
|
+
.vscode/
|
|
171
|
+
|
|
172
|
+
# qemu
|
|
173
|
+
*.qcow2
|
|
174
|
+
*.iso
|
|
175
|
+
|
|
176
|
+
# jetbrains and eclipse
|
|
177
|
+
.cache
|
|
178
|
+
.settings
|
|
179
|
+
.settings/
|
|
180
|
+
.classpath
|
|
181
|
+
.project
|
|
182
|
+
.project.xml
|
|
183
|
+
.idea/
|
|
184
|
+
build.properties
|
|
185
|
+
|
|
186
|
+
# spark
|
|
187
|
+
spark-warehouse/
|
|
188
|
+
|
|
189
|
+
# terraform
|
|
190
|
+
.terraform*
|
|
191
|
+
/.terraform/
|
|
192
|
+
terraform.tfstate
|
|
193
|
+
terraform.tfstate.backup
|
|
194
|
+
/terraform.lock.hcl
|
|
195
|
+
|
|
196
|
+
# scala
|
|
197
|
+
# Anchored: sbt's build dir is at the repo root. Unanchored, this also
|
|
198
|
+
# swallowed source directories named project/ nested under src/.
|
|
199
|
+
/project/
|
|
200
|
+
|
|
201
|
+
# rust
|
|
202
|
+
**/*.rs.bk
|
|
203
|
+
**/mutants.out*/
|
|
204
|
+
*.pdb
|
|
205
|
+
# Anchored: this is the root debug build dir. Unanchored (and without a
|
|
206
|
+
# trailing slash) it matched any file or directory named debug at any depth,
|
|
207
|
+
# including authored example content.
|
|
208
|
+
/debug/
|
|
209
|
+
/.rsconstruct_cache.json
|
|
210
|
+
|
|
211
|
+
# claude
|
|
212
|
+
/.claude/
|
|
213
|
+
/claude/
|
|
214
|
+
.claude/projects/
|
|
215
|
+
.claude/settings.local.json
|
|
216
|
+
|
|
217
|
+
# static sites
|
|
218
|
+
/_site/
|
|
219
|
+
/public/
|
|
220
|
+
/media/
|
|
221
|
+
/static/build_info.toml
|
|
222
|
+
/static/shared-themes/
|
|
223
|
+
/build_info.json
|
|
224
|
+
|
|
225
|
+
# manim
|
|
226
|
+
/.manim_scratch/
|
|
227
|
+
|
|
228
|
+
# terms
|
|
229
|
+
/terms.ambiguous/
|
|
230
|
+
/terms.single_meaning/
|
|
231
|
+
|
|
232
|
+
# stm32 demos
|
|
233
|
+
/STM32CubeWL/
|
|
234
|
+
/exercises/*/*/.obj/
|
|
235
|
+
/exercises/*/*/app*.elf
|
|
236
|
+
/exercises/*/*/app*.map
|
|
237
|
+
/exercises/*/*/firmware*.bin
|
|
238
|
+
/exercises/common/.hal_obj_cm0/
|
|
239
|
+
/exercises/common/.hal_obj_cm4/
|
|
240
|
+
/exercises/common/.rsc_hal_obj_cm0/
|
|
241
|
+
/exercises/common/.rsc_hal_obj_cm4/
|
|
242
|
+
/exercises/common/libhal_cm0.a
|
|
243
|
+
/exercises/common/libhal_cm4.a
|
|
244
|
+
/exercises/common/libhal_rsc_cm0.a
|
|
245
|
+
/exercises/common/libhal_rsc_cm4.a
|
|
246
|
+
|
|
247
|
+
# secrets
|
|
248
|
+
creds.txt
|
|
249
|
+
|
|
250
|
+
# rsconstruct
|
|
251
|
+
/.rsconstruct/
|
|
252
|
+
|
|
253
|
+
# generated website pieces (built into the Pages artifact by CI)
|
|
254
|
+
/docs/output/
|
|
255
|
+
/docs/index.html
|
|
256
|
+
# sphinx html output: the 14 py* repos render docs/ from sphinx/ and publish
|
|
257
|
+
# it as the Pages artifact, so none of it is committed. Listed path by path
|
|
258
|
+
# rather than as /docs/ because the rs* repos keep hand-written mdBook
|
|
259
|
+
# sources there, and several others keep authored html.
|
|
260
|
+
/docs/_modules/
|
|
261
|
+
/docs/_sources/
|
|
262
|
+
/docs/_static/
|
|
263
|
+
/docs/.buildinfo
|
|
264
|
+
/docs/objects.inv
|
|
265
|
+
/docs/searchindex.js
|
|
266
|
+
/docs/.nojekyll
|
|
267
|
+
# sphinx's top-level html. Not a blanket /docs/*.html: js-jschess and the
|
|
268
|
+
# site-personal-* repos keep hand-authored html under docs/. The fixed pages
|
|
269
|
+
# (genindex, modules, search) and the authored-rst pages some repos render
|
|
270
|
+
# (architecture, notes, ...) are listed by name; the one-page-per-module
|
|
271
|
+
# output is /docs/py*.html, since every package here is named py*.
|
|
272
|
+
/docs/architecture.html
|
|
273
|
+
/docs/cli-reference.html
|
|
274
|
+
/docs/development.html
|
|
275
|
+
/docs/genindex.html
|
|
276
|
+
/docs/modules.html
|
|
277
|
+
/docs/notes.html
|
|
278
|
+
/docs/overview.html
|
|
279
|
+
/docs/py*.html
|
|
280
|
+
/docs/quota-guide.html
|
|
281
|
+
/docs/search.html
|
|
282
|
+
|
|
283
|
+
# per-machine tool resolution cache (absolute paths, not portable)
|
|
284
|
+
/.tools.versions
|
pytimer-0.0.17/PKG-INFO
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: pytimer
|
|
3
|
+
Version: 0.0.17
|
|
4
|
+
Summary: pytimer is an easy to use timer
|
|
5
|
+
Project-URL: Homepage, https://github.com/veltzer/pytimer
|
|
6
|
+
Project-URL: Bug Tracker, https://github.com/veltzer/pytimer/issues
|
|
7
|
+
Project-URL: Documentation, https://veltzer.github.io/pytimer
|
|
8
|
+
Project-URL: Download, https://pypi.org/project/pytimer/
|
|
9
|
+
Project-URL: Repository, https://github.com/veltzer/pytimer
|
|
10
|
+
Author-email: Mark Veltzer <mark.veltzer@gmail.com>
|
|
11
|
+
Maintainer-email: Mark Veltzer <mark.veltzer@gmail.com>
|
|
12
|
+
License-Expression: MIT
|
|
13
|
+
License-File: LICENSE
|
|
14
|
+
Keywords: context,manager,python,time,timing,utility
|
|
15
|
+
Classifier: Development Status :: 4 - Beta
|
|
16
|
+
Classifier: Environment :: Console
|
|
17
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
18
|
+
Classifier: Operating System :: OS Independent
|
|
19
|
+
Classifier: Programming Language :: Python
|
|
20
|
+
Classifier: Programming Language :: Python :: 3
|
|
21
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
23
|
+
Classifier: Topic :: Utilities
|
|
24
|
+
Requires-Python: >=3.14
|
|
25
|
+
Description-Content-Type: text/markdown
|
|
26
|
+
|
|
27
|
+
<!-- This file is generated. Do not edit it by hand: your changes will be
|
|
28
|
+
lost on the next build. Edit the template it is rendered from, or the
|
|
29
|
+
values that template reads, and build again. -->
|
|
30
|
+
# *pytimer* project by Mark Veltzer
|
|
31
|
+
|
|
32
|
+
description: pytimer is an easy to use timer
|
|
33
|
+
|
|
34
|
+
project website: <https://veltzer.github.io/pytimer>
|
|
35
|
+
|
|
36
|
+
author: Mark Veltzer
|
|
37
|
+
|
|
38
|
+
version: 0.0.17
|
|
39
|
+
|
|
40
|
+
## github
|
|
41
|
+
|
|
42
|
+

|
|
43
|
+
|
|
44
|
+
## build
|
|
45
|
+
|
|
46
|
+

|
|
47
|
+
|
|
48
|
+
## pypi
|
|
49
|
+
|
|
50
|
+

|
|
51
|
+

|
|
52
|
+

|
|
53
|
+

|
|
54
|
+

|
|
55
|
+
|
|
56
|
+
## pypi download
|
|
57
|
+
|
|
58
|
+

|
|
59
|
+

|
|
60
|
+

|
|
61
|
+
|
|
62
|
+
## contact me
|
|
63
|
+
|
|
64
|
+
[mark.veltzer@gmail.com](mailto:mark.veltzer@gmail.com)
|
|
65
|
+
|
|
66
|
+
Mark Veltzer, Copyright © 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023, 2024, 2025, 2026
|
pytimer-0.0.17/README.md
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
<!-- This file is generated. Do not edit it by hand: your changes will be
|
|
2
|
+
lost on the next build. Edit the template it is rendered from, or the
|
|
3
|
+
values that template reads, and build again. -->
|
|
4
|
+
# *pytimer* project by Mark Veltzer
|
|
5
|
+
|
|
6
|
+
description: pytimer is an easy to use timer
|
|
7
|
+
|
|
8
|
+
project website: <https://veltzer.github.io/pytimer>
|
|
9
|
+
|
|
10
|
+
author: Mark Veltzer
|
|
11
|
+
|
|
12
|
+
version: 0.0.17
|
|
13
|
+
|
|
14
|
+
## github
|
|
15
|
+
|
|
16
|
+

|
|
17
|
+
|
|
18
|
+
## build
|
|
19
|
+
|
|
20
|
+

|
|
21
|
+
|
|
22
|
+
## pypi
|
|
23
|
+
|
|
24
|
+

|
|
25
|
+

|
|
26
|
+

|
|
27
|
+

|
|
28
|
+

|
|
29
|
+
|
|
30
|
+
## pypi download
|
|
31
|
+
|
|
32
|
+

|
|
33
|
+

|
|
34
|
+

|
|
35
|
+
|
|
36
|
+
## contact me
|
|
37
|
+
|
|
38
|
+
[mark.veltzer@gmail.com](mailto:mark.veltzer@gmail.com)
|
|
39
|
+
|
|
40
|
+
Mark Veltzer, Copyright © 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023, 2024, 2025, 2026
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["hatchling"]
|
|
3
|
+
build-backend = "hatchling.build"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "pytimer"
|
|
7
|
+
version = "0.0.17"
|
|
8
|
+
requires-python = ">=3.14"
|
|
9
|
+
authors = [
|
|
10
|
+
{ name = "Mark Veltzer", email = "mark.veltzer@gmail.com" }
|
|
11
|
+
]
|
|
12
|
+
maintainers = [
|
|
13
|
+
{ name = "Mark Veltzer", email = "mark.veltzer@gmail.com" }
|
|
14
|
+
]
|
|
15
|
+
description = "pytimer is an easy to use timer"
|
|
16
|
+
readme = "README.md"
|
|
17
|
+
license = "MIT"
|
|
18
|
+
keywords=[
|
|
19
|
+
"python",
|
|
20
|
+
"timing",
|
|
21
|
+
"time",
|
|
22
|
+
"context",
|
|
23
|
+
"manager",
|
|
24
|
+
"utility",
|
|
25
|
+
]
|
|
26
|
+
classifiers = [
|
|
27
|
+
"Development Status :: 4 - Beta",
|
|
28
|
+
"Environment :: Console",
|
|
29
|
+
"Operating System :: OS Independent",
|
|
30
|
+
"Programming Language :: Python",
|
|
31
|
+
"Programming Language :: Python :: 3",
|
|
32
|
+
"Programming Language :: Python :: 3 :: Only",
|
|
33
|
+
"Programming Language :: Python :: 3.14",
|
|
34
|
+
"Topic :: Utilities",
|
|
35
|
+
"License :: OSI Approved :: MIT License",
|
|
36
|
+
]
|
|
37
|
+
|
|
38
|
+
[dependency-groups]
|
|
39
|
+
dev = [
|
|
40
|
+
"pyrefly",
|
|
41
|
+
"pytest",
|
|
42
|
+
"ruff",
|
|
43
|
+
"sphinx",
|
|
44
|
+
]
|
|
45
|
+
|
|
46
|
+
[project.urls]
|
|
47
|
+
"Homepage" = "https://github.com/veltzer/pytimer"
|
|
48
|
+
"Bug Tracker" = "https://github.com/veltzer/pytimer/issues"
|
|
49
|
+
"Documentation" = "https://veltzer.github.io/pytimer"
|
|
50
|
+
"Download" = "https://pypi.org/project/pytimer/"
|
|
51
|
+
"Repository" = "https://github.com/veltzer/pytimer"
|
|
52
|
+
|
|
53
|
+
[tool.pytest.ini_options]
|
|
54
|
+
# Every strictness check pytest has (strict_config, strict_markers,
|
|
55
|
+
# strict_xfail, strict_parametrization_ids), and every warning fails the
|
|
56
|
+
# test that raised it rather than scrolling past in the summary.
|
|
57
|
+
strict = true
|
|
58
|
+
filterwarnings = ["error"]
|
|
59
|
+
pythonpath = ["src"]
|
|
60
|
+
|
|
61
|
+
[tool.hatch.build.targets.wheel]
|
|
62
|
+
packages = ["src/pytimer"]
|
|
63
|
+
|
|
64
|
+
[tool.hatch.build.targets.sdist]
|
|
65
|
+
include = [
|
|
66
|
+
"src/pytimer/",
|
|
67
|
+
"README.md",
|
|
68
|
+
"LICENSE",
|
|
69
|
+
"pyproject.toml"
|
|
70
|
+
]
|
|
71
|
+
exclude = [
|
|
72
|
+
".gitignore",
|
|
73
|
+
".github/",
|
|
74
|
+
"tests/",
|
|
75
|
+
"docs/",
|
|
76
|
+
"config/",
|
|
77
|
+
"*.md",
|
|
78
|
+
]
|
|
79
|
+
|
|
80
|
+
[tool.pyrefly]
|
|
81
|
+
# Type checking (rsconstruct's pyrefly processor), with pyrefly's default
|
|
82
|
+
# error set. "." on the search path is mypy's implicit current directory.
|
|
83
|
+
# Warnings fail the check like errors (pyrefly lets them pass by default).
|
|
84
|
+
min-severity = "warn"
|
|
85
|
+
python-version = "3.14"
|
|
86
|
+
search-path = [
|
|
87
|
+
"src",
|
|
88
|
+
".",
|
|
89
|
+
]
|
|
90
|
+
|
|
91
|
+
[tool.pyrefly.errors]
|
|
92
|
+
no-any-return = "error"
|
|
93
|
+
|
|
94
|
+
[tool.hatch.envs.default]
|
|
95
|
+
installer = "uv"
|
|
96
|
+
|
|
97
|
+
[tool.uv.pip]
|
|
98
|
+
prerelease = "disallow"
|
|
@@ -1,10 +1,15 @@
|
|
|
1
|
+
"""
|
|
2
|
+
pytimer.py
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
|
|
1
6
|
import time
|
|
2
7
|
|
|
3
8
|
|
|
4
9
|
class Timer:
|
|
5
|
-
def __init__(self, do_print=True, do_title=None):
|
|
6
|
-
self.start_time = None
|
|
7
|
-
self.end_time = None
|
|
10
|
+
def __init__(self, *, do_print=True, do_title=None):
|
|
11
|
+
self.start_time: float | None = None
|
|
12
|
+
self.end_time: float | None = None
|
|
8
13
|
self.print = do_print
|
|
9
14
|
self.title = do_title
|
|
10
15
|
|
|
@@ -12,8 +17,10 @@ class Timer:
|
|
|
12
17
|
self.start_time = time.time()
|
|
13
18
|
|
|
14
19
|
def __exit__(self, itype, value, traceback):
|
|
15
|
-
|
|
16
|
-
|
|
20
|
+
end_time = time.time()
|
|
21
|
+
self.end_time = end_time
|
|
22
|
+
start_time = self.start_time if self.start_time is not None else end_time
|
|
23
|
+
diff = end_time - start_time
|
|
17
24
|
if self.print:
|
|
18
25
|
if self.title:
|
|
19
26
|
print(f"time taken for [{self.title}]: {diff:.6f} seconds")
|
pytimer-0.0.16/PKG-INFO
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.1
|
|
2
|
-
Name: pytimer
|
|
3
|
-
Version: 0.0.16
|
|
4
|
-
Summary: pytimer is an easy to use timer
|
|
5
|
-
Home-page: https://veltzer.github.io/pytimer
|
|
6
|
-
Download-URL: https://github.com/veltzer/pytimer
|
|
7
|
-
Author: Mark Veltzer
|
|
8
|
-
Author-email: mark.veltzer@gmail.com
|
|
9
|
-
Maintainer: Mark Veltzer
|
|
10
|
-
Maintainer-email: mark.veltzer@gmail.com
|
|
11
|
-
License: MIT
|
|
12
|
-
Keywords: python,timing,time,context,manager,utility
|
|
13
|
-
Platform: python3
|
|
14
|
-
Classifier: Development Status :: 4 - Beta
|
|
15
|
-
Classifier: Environment :: Console
|
|
16
|
-
Classifier: Operating System :: OS Independent
|
|
17
|
-
Classifier: Programming Language :: Python
|
|
18
|
-
Classifier: Programming Language :: Python :: 3
|
|
19
|
-
Classifier: Programming Language :: Python :: 3 :: Only
|
|
20
|
-
Classifier: Programming Language :: Python :: 3.11
|
|
21
|
-
Classifier: Topic :: Utilities
|
|
22
|
-
Classifier: License :: OSI Approved :: MIT License
|
|
23
|
-
Description-Content-Type: text/x-rst
|
|
24
|
-
License-File: LICENSE
|
|
25
|
-
|
|
26
|
-
=========
|
|
27
|
-
*pytimer*
|
|
28
|
-
=========
|
|
29
|
-
|
|
30
|
-
.. image:: https://img.shields.io/pypi/v/pytimer
|
|
31
|
-
|
|
32
|
-
.. image:: https://img.shields.io/github/license/veltzer/pytimer
|
|
33
|
-
|
|
34
|
-
.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
|
|
35
|
-
|
|
36
|
-
project website: https://veltzer.github.io/pytimer
|
|
37
|
-
|
|
38
|
-
author: Mark Veltzer
|
|
39
|
-
|
|
40
|
-
version: 0.0.16
|
|
41
|
-
|
|
42
|
-
Mark Veltzer <mark.veltzer@gmail.com>, Copyright © 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023, 2024
|
pytimer-0.0.16/README.rst
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
=========
|
|
2
|
-
*pytimer*
|
|
3
|
-
=========
|
|
4
|
-
|
|
5
|
-
.. image:: https://img.shields.io/pypi/v/pytimer
|
|
6
|
-
|
|
7
|
-
.. image:: https://img.shields.io/github/license/veltzer/pytimer
|
|
8
|
-
|
|
9
|
-
.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
|
|
10
|
-
|
|
11
|
-
project website: https://veltzer.github.io/pytimer
|
|
12
|
-
|
|
13
|
-
author: Mark Veltzer
|
|
14
|
-
|
|
15
|
-
version: 0.0.16
|
|
16
|
-
|
|
17
|
-
Mark Veltzer <mark.veltzer@gmail.com>, Copyright © 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023, 2024
|
|
File without changes
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.1
|
|
2
|
-
Name: pytimer
|
|
3
|
-
Version: 0.0.16
|
|
4
|
-
Summary: pytimer is an easy to use timer
|
|
5
|
-
Home-page: https://veltzer.github.io/pytimer
|
|
6
|
-
Download-URL: https://github.com/veltzer/pytimer
|
|
7
|
-
Author: Mark Veltzer
|
|
8
|
-
Author-email: mark.veltzer@gmail.com
|
|
9
|
-
Maintainer: Mark Veltzer
|
|
10
|
-
Maintainer-email: mark.veltzer@gmail.com
|
|
11
|
-
License: MIT
|
|
12
|
-
Keywords: python,timing,time,context,manager,utility
|
|
13
|
-
Platform: python3
|
|
14
|
-
Classifier: Development Status :: 4 - Beta
|
|
15
|
-
Classifier: Environment :: Console
|
|
16
|
-
Classifier: Operating System :: OS Independent
|
|
17
|
-
Classifier: Programming Language :: Python
|
|
18
|
-
Classifier: Programming Language :: Python :: 3
|
|
19
|
-
Classifier: Programming Language :: Python :: 3 :: Only
|
|
20
|
-
Classifier: Programming Language :: Python :: 3.11
|
|
21
|
-
Classifier: Topic :: Utilities
|
|
22
|
-
Classifier: License :: OSI Approved :: MIT License
|
|
23
|
-
Description-Content-Type: text/x-rst
|
|
24
|
-
License-File: LICENSE
|
|
25
|
-
|
|
26
|
-
=========
|
|
27
|
-
*pytimer*
|
|
28
|
-
=========
|
|
29
|
-
|
|
30
|
-
.. image:: https://img.shields.io/pypi/v/pytimer
|
|
31
|
-
|
|
32
|
-
.. image:: https://img.shields.io/github/license/veltzer/pytimer
|
|
33
|
-
|
|
34
|
-
.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
|
|
35
|
-
|
|
36
|
-
project website: https://veltzer.github.io/pytimer
|
|
37
|
-
|
|
38
|
-
author: Mark Veltzer
|
|
39
|
-
|
|
40
|
-
version: 0.0.16
|
|
41
|
-
|
|
42
|
-
Mark Veltzer <mark.veltzer@gmail.com>, Copyright © 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023, 2024
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
pytimer
|
pytimer-0.0.16/setup.cfg
DELETED
pytimer-0.0.16/setup.py
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import setuptools
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
def get_readme():
|
|
5
|
-
with open("README.rst") as f:
|
|
6
|
-
return f.read()
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
setuptools.setup(
|
|
10
|
-
# the first three fields are a must according to the documentation
|
|
11
|
-
name="pytimer",
|
|
12
|
-
version="0.0.16",
|
|
13
|
-
packages=[
|
|
14
|
-
"pytimer",
|
|
15
|
-
],
|
|
16
|
-
# from here all is optional
|
|
17
|
-
description="pytimer is an easy to use timer",
|
|
18
|
-
long_description=get_readme(),
|
|
19
|
-
long_description_content_type="text/x-rst",
|
|
20
|
-
author="Mark Veltzer",
|
|
21
|
-
author_email="mark.veltzer@gmail.com",
|
|
22
|
-
maintainer="Mark Veltzer",
|
|
23
|
-
maintainer_email="mark.veltzer@gmail.com",
|
|
24
|
-
keywords=[
|
|
25
|
-
"python",
|
|
26
|
-
"timing",
|
|
27
|
-
"time",
|
|
28
|
-
"context",
|
|
29
|
-
"manager",
|
|
30
|
-
"utility",
|
|
31
|
-
],
|
|
32
|
-
url="https://veltzer.github.io/pytimer",
|
|
33
|
-
download_url="https://github.com/veltzer/pytimer",
|
|
34
|
-
license="MIT",
|
|
35
|
-
platforms=[
|
|
36
|
-
"python3",
|
|
37
|
-
],
|
|
38
|
-
install_requires=[
|
|
39
|
-
],
|
|
40
|
-
classifiers=[
|
|
41
|
-
"Development Status :: 4 - Beta",
|
|
42
|
-
"Environment :: Console",
|
|
43
|
-
"Operating System :: OS Independent",
|
|
44
|
-
"Programming Language :: Python",
|
|
45
|
-
"Programming Language :: Python :: 3",
|
|
46
|
-
"Programming Language :: Python :: 3 :: Only",
|
|
47
|
-
"Programming Language :: Python :: 3.11",
|
|
48
|
-
"Topic :: Utilities",
|
|
49
|
-
"License :: OSI Approved :: MIT License",
|
|
50
|
-
],
|
|
51
|
-
)
|