From 2c31bb6b028f50b06ec6743e13a93cba6e68cc66 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Sun, 8 Dec 2013 11:49:02 -0500 Subject: [PATCH] examples/utils.c: also print duration in seconds --- examples/utils.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/utils.c b/examples/utils.c index f5c1d55f..96862af9 100644 --- a/examples/utils.c +++ b/examples/utils.c @@ -163,7 +163,8 @@ examples_common_process (aubio_process_func_t process_func, total_read += read; } while (read == hop_size); - verbmsg ("read %d samples (%d blocks of %d) from %s at %dHz\n", + verbmsg ("read %.2fs (%d samples in %d blocks of %d) from %s at %dHz\n", + total_read * 1. / samplerate, total_read, blocks, hop_size, source_uri, samplerate); del_aubio_source (this_source); -- 2.11.0