kenenet 0.8.2__py3-none-any.whl → 0.8.3__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 +2 -2
- {kenenet-0.8.2.dist-info → kenenet-0.8.3.dist-info}/METADATA +1 -1
- kenenet-0.8.3.dist-info/RECORD +5 -0
- kenenet-0.8.2.dist-info/RECORD +0 -5
- {kenenet-0.8.2.dist-info → kenenet-0.8.3.dist-info}/WHEEL +0 -0
- {kenenet-0.8.2.dist-info → kenenet-0.8.3.dist-info}/top_level.txt +0 -0
kenenet/__init__.py
CHANGED
@@ -263,7 +263,7 @@ def load_audio(mp3_path):
|
|
263
263
|
|
264
264
|
import time
|
265
265
|
|
266
|
-
def time_func(func, loop, *args, **kwargs):
|
266
|
+
def time_func(func, loop=10000, *args, **kwargs):
|
267
267
|
func_name = getattr(func, '__name__', repr(func))
|
268
268
|
frame = inspect.currentframe().f_back
|
269
269
|
lineno = frame.f_lineno
|
@@ -271,7 +271,7 @@ def time_func(func, loop, *args, **kwargs):
|
|
271
271
|
for _ in range(loop):
|
272
272
|
func(*args, **kwargs)
|
273
273
|
elapsed = time.time() - start
|
274
|
-
quick_print(f'{func_name} took {elapsed}', lineno)
|
274
|
+
quick_print(f'{loop}x {func_name} took {elapsed}', lineno)
|
275
275
|
return elapsed
|
276
276
|
|
277
277
|
class k:
|
@@ -0,0 +1,5 @@
|
|
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,,
|
kenenet-0.8.2.dist-info/RECORD
DELETED
@@ -1,5 +0,0 @@
|
|
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,,
|
File without changes
|
File without changes
|