From e16457e42864c9b0f6f5d749a15cadf9f7858c96 Mon Sep 17 00:00:00 2001 From: Warren Dukes Date: Fri, 4 Aug 2006 22:52:48 +0000 Subject: fix a bug in tree.c and add DEBUG() timing for closeMp3Directory git-svn-id: https://svn.musicpd.org/mpd/branches/mpd-tree@4552 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/main.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index 81170d27e..cf34eb989 100644 --- a/src/main.c +++ b/src/main.c @@ -54,6 +54,7 @@ #include #include #include +#include #include #define SYSTEM_CONFIG_FILE_LOCATION "/etc/mpd.conf" @@ -526,7 +527,10 @@ int main(int argc, char *argv[]) freeAllInterfaces(); closeAllListenSockets(); + clock_t start = clock(); closeMp3Directory(); + DEBUG("closeMp3Directory took %f seconds\n", + ((float)(clock()-start))/CLOCKS_PER_SEC); finishPlaylist(); freePlayerData(); -- cgit v1.2.3