4 #include <libmpd/libmpd.h>
5 #include "gmpc-meta-watcher.h"
6 #include "gmpc-connection.h"
8 #include "metadata-cache.h"
10 GObject
*config
= NULL
;
11 GmpcMetaWatcher
*gmw
= NULL
;
12 GObject
*connection
= NULL
;
14 void playlist3_show_error_message()
32 int main(int argc
, char **argv
)
36 MetaDataResult result
;
40 g_get_current_time(¤t
);
41 metadata_cache_init();
42 g_get_current_time(&now
);
43 a
= now
.tv_usec
- current
.tv_usec
;
44 printf("elapsed open db: %li us\n", (a
<0)?1-a
:a
);
51 mpd_Song
*song
= mpd_newSong();
52 song
->artist
= g_strdup(artists
[i
]);
53 result
= meta_data_get_from_cache(song
, META_ARTIST_ART
, &met
);
54 if(met
) meta_data_free(met
);
60 g_get_current_time(&now
);
61 a
= now
.tv_usec
- current
.tv_usec
;
62 printf("elapsed 10.000 queries: %li us\n", (a
<0)?1-a
:a
);
64 metadata_cache_destroy();
66 g_get_current_time(&now
);
67 a
= now
.tv_usec
- current
.tv_usec
;
68 printf("elapsed closing: %li us\n", (a
<0)?1-a
:a
);