Created
December 19, 2009 18:24
-
-
Save bert/260183 to your computer and use it in GitHub Desktop.
Get startup time example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*! | |
* \file get_startup_time.c | |
* \brief | |
*/ | |
#include <glib.h> | |
int | |
main (int argc, char **argv) | |
{ | |
GTimer *startup_timer = g_timer_new (); | |
/* ... your startup code goes here*/ | |
printf ("startup in %gs\n", g_timer_elapsed (startup_timer, NULL)); | |
gtk_main (); | |
return (0); | |
} | |
/* EOF */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment