kenenet 0.8.1__py3-none-any.whl → 0.8.2__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
@@ -263,12 +263,15 @@ def load_audio(mp3_path):
263
263
 
264
264
  import time
265
265
 
266
- def time_func(func, looped_times=10000, *args, **kwargs):
266
+ def time_func(func, loop, *args, **kwargs):
267
267
  func_name = getattr(func, '__name__', repr(func))
268
- timer(clock=9999)
269
- for _ in range(looped_times):
268
+ frame = inspect.currentframe().f_back
269
+ lineno = frame.f_lineno
270
+ start = time.time()
271
+ for _ in range(loop):
270
272
  func(*args, **kwargs)
271
- elapsed = timer(clock=func_name)
273
+ elapsed = time.time() - start
274
+ quick_print(f'{func_name} took {elapsed}', lineno)
272
275
  return elapsed
273
276
 
274
277
  class k:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: kenenet
3
- Version: 0.8.1
3
+ Version: 0.8.2
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=6kwpIlIosQd_9Z4eG79wQFJhMOz14r1XXivREG2Kzco,11160
2
+ kenenet-0.8.2.dist-info/METADATA,sha256=mn-ohTyxCtonkdPzmAgiZYzoNYzagLidOiQDvLETw4k,633
3
+ kenenet-0.8.2.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
4
+ kenenet-0.8.2.dist-info/top_level.txt,sha256=gUsWXLrM0jF4b4nbYJZdksdFewIx_F3xOF-zER8fMuQ,8
5
+ kenenet-0.8.2.dist-info/RECORD,,
@@ -1,5 +0,0 @@
1
- kenenet/__init__.py,sha256=84-vm5lYRu21rolFQ3DoMWIbgAnAffzfuXnBYHG6SeE,11055
2
- kenenet-0.8.1.dist-info/METADATA,sha256=3WtUONBkxjkj00iPk6h0qxOIIAYs4ds_S_lJsFpvV3I,633
3
- kenenet-0.8.1.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
4
- kenenet-0.8.1.dist-info/top_level.txt,sha256=gUsWXLrM0jF4b4nbYJZdksdFewIx_F3xOF-zER8fMuQ,8
5
- kenenet-0.8.1.dist-info/RECORD,,