kenenet 0.8.3__py3-none-any.whl → 0.8.5__py3-none-any.whl
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.
- kenenet/__init__.py +6 -3
- {kenenet-0.8.3.dist-info → kenenet-0.8.5.dist-info}/METADATA +1 -1
- kenenet-0.8.5.dist-info/RECORD +5 -0
- kenenet-0.8.3.dist-info/RECORD +0 -5
- {kenenet-0.8.3.dist-info → kenenet-0.8.5.dist-info}/WHEEL +0 -0
- {kenenet-0.8.3.dist-info → kenenet-0.8.5.dist-info}/top_level.txt +0 -0
kenenet/__init__.py
CHANGED
@@ -48,11 +48,14 @@ def timer(clock=1):
|
|
48
48
|
elapsed = time.time() - timings[clock]
|
49
49
|
frame = inspect.currentframe().f_back
|
50
50
|
lineno = frame.f_lineno
|
51
|
-
quick_print(f'Timer {clock} took \033[97m{elapsed}\033[0m seconds', lineno)
|
51
|
+
quick_print(f'Timer {clock[0]} took \033[97m{elapsed}\033[0m seconds', f'{lineno}-{clock[1]}')
|
52
52
|
del timings[clock]
|
53
53
|
return elapsed
|
54
54
|
else:
|
55
|
-
|
55
|
+
ct = time.time()
|
56
|
+
frame = inspect.currentframe().f_back
|
57
|
+
lineno = frame.f_lineno
|
58
|
+
timings[clock] = (ct, lineno)
|
56
59
|
|
57
60
|
class _Config:
|
58
61
|
EXCLUDED_NAMES = {'Config', 'VariableTracker', 'track_variables', 'stop_tracking',
|
@@ -271,7 +274,7 @@ def time_func(func, loop=10000, *args, **kwargs):
|
|
271
274
|
for _ in range(loop):
|
272
275
|
func(*args, **kwargs)
|
273
276
|
elapsed = time.time() - start
|
274
|
-
quick_print(f'{loop}x {func_name} took {elapsed}', lineno)
|
277
|
+
quick_print(f'{loop:,}x {func_name} took {elapsed}', lineno)
|
275
278
|
return elapsed
|
276
279
|
|
277
280
|
class k:
|
@@ -0,0 +1,5 @@
|
|
1
|
+
kenenet/__init__.py,sha256=oNTX-KLpjWlM_jXiYLrgX8F614BIn06ISVAZ5q44TfU,11302
|
2
|
+
kenenet-0.8.5.dist-info/METADATA,sha256=ISmIq1qC3ezQMTAlqwFs3UX1c_EBWSyYK0H3nOd0U1s,633
|
3
|
+
kenenet-0.8.5.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
4
|
+
kenenet-0.8.5.dist-info/top_level.txt,sha256=gUsWXLrM0jF4b4nbYJZdksdFewIx_F3xOF-zER8fMuQ,8
|
5
|
+
kenenet-0.8.5.dist-info/RECORD,,
|
kenenet-0.8.3.dist-info/RECORD
DELETED
@@ -1,5 +0,0 @@
|
|
1
|
-
kenenet/__init__.py,sha256=55-ylGSiGVXzPkY7hZgnYWcrK0NuldKshi_Yea6tqz0,11174
|
2
|
-
kenenet-0.8.3.dist-info/METADATA,sha256=Qq_xMT7SGhystCMsOzC3tKfbbvrY-iuE5eeWMXCOW5A,633
|
3
|
-
kenenet-0.8.3.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
4
|
-
kenenet-0.8.3.dist-info/top_level.txt,sha256=gUsWXLrM0jF4b4nbYJZdksdFewIx_F3xOF-zER8fMuQ,8
|
5
|
-
kenenet-0.8.3.dist-info/RECORD,,
|
File without changes
|
File without changes
|