Skip to content

Commit 148f188

Browse files
committed
Remove deprecated code
1 parent e10c805 commit 148f188

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pyAudioProcessing/features/audioFeatureExtraction.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ def dirWavFeatureExtraction(dirName, mt_win, mt_step, st_win, st_step, feats,
202202
if isinstance(x, int):
203203
continue
204204

205-
t1 = time.clock()
205+
t1 = time.time()
206206
x = audioBasicIO.stereo2mono(x)
207207
if x.shape[0]<float(fs)/5:
208208
print(" (AUDIO FILE TOO SMALL - SKIPPING)")
@@ -233,7 +233,7 @@ def dirWavFeatureExtraction(dirName, mt_win, mt_step, st_win, st_step, feats,
233233
all_mt_feats = mt_term_feats
234234
else:
235235
all_mt_feats = numpy.vstack((all_mt_feats, mt_term_feats))
236-
t2 = time.clock()
236+
t2 = time.time()
237237
duration = float(len(x)) / fs
238238
process_times.append((t2 - t1) / duration)
239239
if len(process_times) > 0:

0 commit comments

Comments
 (0)