kenenet 0.7.9__py3-none-any.whl → 0.8.1__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
@@ -257,10 +257,19 @@ class AudioPlayer:
257
257
  looper.stop()
258
258
  self.active_audio.clear()
259
259
 
260
-
261
260
  def load_audio(mp3_path):
262
261
  _ray_init_thread.join()
263
262
  return zhmiscellany.processing.synchronous_class_multiprocess(AudioPlayer, mp3_path)
263
+
264
+ import time
265
+
266
+ def time_func(func, looped_times=10000, *args, **kwargs):
267
+ func_name = getattr(func, '__name__', repr(func))
268
+ timer(clock=9999)
269
+ for _ in range(looped_times):
270
+ func(*args, **kwargs)
271
+ elapsed = timer(clock=func_name)
272
+ return elapsed
264
273
 
265
274
  class k:
266
275
  pass
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: kenenet
3
- Version: 0.7.9
3
+ Version: 0.8.1
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=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,,
@@ -1,5 +0,0 @@
1
- kenenet/__init__.py,sha256=gm2KeCvfhCSb_bytoZ8kD-F3-K-0tzswxrKkhWMEeAQ,10779
2
- kenenet-0.7.9.dist-info/METADATA,sha256=tnQtMyZv3_uO06omh5LMmu65ecMuM0Vj-Bah_JOSQLk,633
3
- kenenet-0.7.9.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
4
- kenenet-0.7.9.dist-info/top_level.txt,sha256=gUsWXLrM0jF4b4nbYJZdksdFewIx_F3xOF-zER8fMuQ,8
5
- kenenet-0.7.9.dist-info/RECORD,,