Re: gtk application startup time

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

 



On 11/8/06, Shyjumon N. <shyjumon.n@xxxxxxxxxxxxxxxxx> 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 );
}
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux