pyAudioAnalysis icon indicating copy to clipboard operation
pyAudioAnalysis copied to clipboard

time.clock was removed in Python 3.8 in favor of time.process_time/time.perf_counter

Open tirkarthi opened this issue 4 years ago • 1 comments

Ref : https://github.com/python/cpython/pull/13270

pyAudioAnalysis/data/testComputational.py
16:			t1 = time.clock()
18:			t2 = time.clock()
24:			t1 = time.clock()
26:			t2 = time.clock()
32:			t1 = time.clock()
34:			t2 = time.clock()
40:			t1 = time.clock()
42:			t2 = time.clock()
48:			t1 = time.clock()
51:			t2 = time.clock()
57:			t1 = time.clock()
59:			t2 = time.clock()
65:			t1 = time.clock()		
67:			t2 = time.clock()
73:			t1 = time.clock()		
75:			t2 = time.clock()

pyAudioAnalysis/MidTermFeatures.py
173:        t1 = time.clock()        
208:            t2 = time.clock()

tirkarthi avatar May 10 '20 04:05 tirkarthi

I'm getting an `AttributeError: module 'time' has no attribute 'clock'`` when I attempt to run the visualization function... any ideas on how I might be able to fix that?

wyattowalsh avatar Sep 12 '20 09:09 wyattowalsh