Re: gtk application startup time



On 11/8/06, Shyjumon N. <shyjumon n ttec soc-soft com> wrote:
   I was tring to find the start up time of my gtk application ....
i am getting negative time. i am putting the code here. please comment on it...

You can use g_timer for this. For example:

int
main( int argc, char **argv )
{
   GTimer *startup_timer = g_timer_new();

   ... your startup code

   printf( "startup in %gs\n", g_timer_elapsed( startup_timer, NULL ) );

   gtk_main();

   return( 0 );
}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]