From 8239a246be6ca1a0dc9d128186f3f770eff8ebed Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Thu, 22 Jul 2004 18:28:55 +0000 Subject: Ignore the microseconds part of the g_timer_elapsed call, its redundant 2004-07-22 Christian Persch * lib/ephy-debug.c: (ephy_profiler_dump): Ignore the microseconds part of the g_timer_elapsed call, its redundant information, and breaks when the timer is over a second. (ported from galeon). --- ChangeLog | 9 +++++++++ lib/ephy-debug.c | 7 +++---- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 641fef42d..d931d4670 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2004-07-22 Christian Persch + + * lib/ephy-debug.c: (ephy_profiler_dump): + + Ignore the microseconds part + of the g_timer_elapsed call, its redundant information, + and breaks when the timer is over a second. + (ported from galeon). + 2004-07-22 Christian Persch * embed/ephy-embed-single.c: diff --git a/lib/ephy-debug.c b/lib/ephy-debug.c index 4f59c936e..a0f2929af 100644 --- a/lib/ephy-debug.c +++ b/lib/ephy-debug.c @@ -137,16 +137,15 @@ ephy_should_profile (const char *module) static void ephy_profiler_dump (EphyProfiler *profiler) { - long elapsed; double seconds; g_return_if_fail (profiler != NULL); - seconds = g_timer_elapsed (profiler->timer, &elapsed); + seconds = g_timer_elapsed (profiler->timer, NULL); - g_print ("[ %s ] %s %ld ms (%f s) elapsed\n", + g_print ("[ %s ] %s %f s elapsed\n", profiler->module, profiler->name, - elapsed / (G_USEC_PER_SEC / 1000), seconds); + seconds); } static void -- cgit v1.2.3