[uim-commit] r368 - trunk
tkng@freedesktop.org
tkng@freedesktop.org
Thu Jan 27 15:55:09 PST 2005
Author: tkng
Date: 2005-01-27 15:54:56 -0800 (Thu, 27 Jan 2005)
New Revision: 368
Modified:
trunk/entry.c
Log:
* entry.c: Use GTimer to measure elapsed time for uim_init.
Modified: trunk/entry.c
===================================================================
--- trunk/entry.c 2005-01-27 22:25:47 UTC (rev 367)
+++ trunk/entry.c 2005-01-27 23:54:56 UTC (rev 368)
@@ -35,9 +35,13 @@
GtkWidget *button;
GtkWidget *check;
+ GTimer *tim = g_timer_new();
+
gtk_set_locale();
gtk_init (&argc, &argv);
+ g_timer_start(tim);
+
/* create a new window */
window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
gtk_widget_set_usize( GTK_WIDGET (window), 200, 100);
@@ -89,6 +93,9 @@
gtk_widget_show(window);
+ g_print("elapsed time: %f\n",g_timer_elapsed(tim,NULL));
+ g_timer_destroy(tim);
+
gtk_main();
return(0);
}
More information about the Uim-commit
mailing list