kenenet 0.8.4__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 CHANGED
@@ -45,14 +45,20 @@ 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
- quick_print(f'Timer {clock} took \033[97m{elapsed}\033[0m seconds', lineno)
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:
55
- timings[clock] = time.time()
58
+ ct = time.time()
59
+ frame = inspect.currentframe().f_back
60
+ lineno = frame.f_lineno
61
+ timings[clock] = (ct, lineno)
56
62
 
57
63
  class _Config:
58
64
  EXCLUDED_NAMES = {'Config', 'VariableTracker', 'track_variables', 'stop_tracking',
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: kenenet
3
- Version: 0.8.4
3
+ Version: 0.8.6
4
4
  Summary: dude what the fuck even is this package
5
5
  Home-page: https://www.youtube.com/@KiddyKene
6
6
  Author: kiddykene
@@ -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,,
@@ -1,5 +0,0 @@
1
- kenenet/__init__.py,sha256=JFterb0bsYYGpRfrnNk0tTva8LrBempp4SZeDtmK18I,11176
2
- kenenet-0.8.4.dist-info/METADATA,sha256=HtYGks454TQW6FIPZQtd1B6X9WOZ3m4oVF1bZLh43Zw,633
3
- kenenet-0.8.4.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
4
- kenenet-0.8.4.dist-info/top_level.txt,sha256=gUsWXLrM0jF4b4nbYJZdksdFewIx_F3xOF-zER8fMuQ,8
5
- kenenet-0.8.4.dist-info/RECORD,,