Skip to content

Instantly share code, notes, and snippets.

@bert
Created December 19, 2009 18:24
Show Gist options
  • Save bert/260183 to your computer and use it in GitHub Desktop.
Save bert/260183 to your computer and use it in GitHub Desktop.
Get startup time example
/*!
* \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