Re: gtk application startup time
- From: "John Cupitt" <jcupitt gmail com>
- To: "Shyjumon N." <shyjumon n ttec soc-soft com>
- Cc: gtk-list gnome org
- Subject: Re: gtk application startup time
- Date: Wed, 8 Nov 2006 13:24:50 +0000
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]