diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2004-07-23 02:28:55 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2004-07-23 02:28:55 +0800 |
commit | 8239a246be6ca1a0dc9d128186f3f770eff8ebed (patch) | |
tree | 5193b3b8aad342f058ef6e764df832bc98893a09 /lib | |
parent | b0797c8f3de7e0be7c616dc61f8f6323c9f98a98 (diff) | |
download | gsoc2013-epiphany-8239a246be6ca1a0dc9d128186f3f770eff8ebed.tar gsoc2013-epiphany-8239a246be6ca1a0dc9d128186f3f770eff8ebed.tar.gz gsoc2013-epiphany-8239a246be6ca1a0dc9d128186f3f770eff8ebed.tar.bz2 gsoc2013-epiphany-8239a246be6ca1a0dc9d128186f3f770eff8ebed.tar.lz gsoc2013-epiphany-8239a246be6ca1a0dc9d128186f3f770eff8ebed.tar.xz gsoc2013-epiphany-8239a246be6ca1a0dc9d128186f3f770eff8ebed.tar.zst gsoc2013-epiphany-8239a246be6ca1a0dc9d128186f3f770eff8ebed.zip |
Ignore the microseconds part of the g_timer_elapsed call, its redundant
2004-07-22 Christian Persch <chpe@cvs.gnome.org>
* 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).
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ephy-debug.c | 7 |
1 files changed, 3 insertions, 4 deletions
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 |