KatzeArray* extensions;
#ifdef G_ENABLE_DEBUG
gboolean startup_timer = g_getenv ("MIDORI_STARTTIME") != NULL;
- GTimer* timer;
- if (startup_timer)
- timer = g_timer_new ();
+ GTimer* timer = startup_timer ? g_timer_new () : NULL;
#endif
/* Load extensions */
#ifdef G_ENABLE_DEBUG
if (startup_timer)
- g_debug ("Extensions:\t%f", g_test_timer_elapsed ());
+ g_debug ("Extensions:\t%f", g_timer_elapsed (timer, NULL));
#endif
return FALSE;
gchar** command = g_object_get_data (G_OBJECT (app), "execute-command");
#ifdef G_ENABLE_DEBUG
gboolean startup_timer = g_getenv ("MIDORI_STARTTIME") != NULL;
- GTimer* timer;
- if (startup_timer)
- timer = g_timer_new ();
+ GTimer* timer = startup_timer ? g_timer_new () : NULL;
#endif
browser = midori_app_create_browser (app);
#ifdef G_ENABLE_DEBUG
if (startup_timer)
- g_debug ("Session setup:\t%f", g_test_timer_elapsed ());
+ g_debug ("Session setup:\t%f", g_timer_elapsed (timer, NULL));
#endif
return FALSE;
else
g_set_application_name (_("Midori"));
- #ifdef G_ENABLE_DEBUG
- if (startup_timer)
- g_test_timer_start ();
- #endif
-
if (version)
{
g_print (