kenenet 0.8.5__py3-none-any.whl → 0.8.6__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 +5 -2
- {kenenet-0.8.5.dist-info → kenenet-0.8.6.dist-info}/METADATA +1 -1
- kenenet-0.8.6.dist-info/RECORD +5 -0
- kenenet-0.8.5.dist-info/RECORD +0 -5
- {kenenet-0.8.5.dist-info → kenenet-0.8.6.dist-info}/WHEEL +0 -0
- {kenenet-0.8.5.dist-info → kenenet-0.8.6.dist-info}/top_level.txt +0 -0
kenenet/__init__.py
CHANGED
@@ -45,10 +45,13 @@ def get_pos(key='f10', kill=False):
|
|
45
45
|
|
46
46
|
def timer(clock=1):
|
47
47
|
if clock in timings:
|
48
|
-
elapsed = time.time() - timings[clock]
|
48
|
+
elapsed = time.time() - timings[clock][0]
|
49
49
|
frame = inspect.currentframe().f_back
|
50
50
|
lineno = frame.f_lineno
|
51
|
-
|
51
|
+
if timer == 1:
|
52
|
+
quick_print(f'Timer took \033[97m{elapsed}\033[0m seconds', f'{lineno}-{timings[clock][1]}')
|
53
|
+
else:
|
54
|
+
quick_print(f'Timer {clock} took \033[97m{elapsed}\033[0m seconds', f'{lineno}-{timings[clock][1]}')
|
52
55
|
del timings[clock]
|
53
56
|
return elapsed
|
54
57
|
else:
|
@@ -0,0 +1,5 @@
|
|
1
|
+
kenenet/__init__.py,sha256=b_mtEwWLKKleN6D6Qto6dyv8LDtPTV5f3D8jP0eR_NA,11460
|
2
|
+
kenenet-0.8.6.dist-info/METADATA,sha256=ClRjCpmI00kdm-RvJsat-Z2eiKGwPaQzBVmgJ0V1q3k,633
|
3
|
+
kenenet-0.8.6.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
4
|
+
kenenet-0.8.6.dist-info/top_level.txt,sha256=gUsWXLrM0jF4b4nbYJZdksdFewIx_F3xOF-zER8fMuQ,8
|
5
|
+
kenenet-0.8.6.dist-info/RECORD,,
|
kenenet-0.8.5.dist-info/RECORD
DELETED
@@ -1,5 +0,0 @@
|
|
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,,
|
File without changes
|
File without changes
|