source: trunk/third/gnome-vfs2/test/test-performance.c @ 18317

Revision 18317, 472 bytes checked in by ghudson, 22 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r18316, which included commits to RCS files with non-trunk default branches.
Line 
1#include <config.h>
2
3#include <stdio.h>
4#include <glib-object.h>
5#include <libgnomevfs/gnome-vfs.h>
6#include <libgnomevfs/gnome-vfs-mime-info.h>
7
8int
9main (int argc, char **argv)
10{
11        int i;
12        GTimer *timer = g_timer_new ();
13
14        g_type_init ();
15        gnome_vfs_init (); /* start threads */
16
17        g_timer_start (timer);
18
19        for (i = 0; i < 10; i++) {
20                gnome_vfs_mime_info_reload ();
21        }
22
23        fprintf (stderr, "mime parse took %g(ms)\n",
24                 g_timer_elapsed (timer, NULL) * 100);
25
26        return 0;
27}
Note: See TracBrowser for help on using the repository browser.