Index: client/mapview_common.c =================================================================== RCS file: /home/freeciv/CVS/freeciv/client/mapview_common.c,v retrieving revision 1.22 diff -u -u -r1.22 mapview_common.c --- client/mapview_common.c 2002/12/06 22:25:12 1.22 +++ client/mapview_common.c 2002/12/08 19:15:57 @@ -20,6 +20,7 @@ #include "log.h" #include "map.h" #include "support.h" +#include "timing.h" #include "mapview_g.h" @@ -382,6 +383,7 @@ { int map_view_x0, map_view_y0, map_win_width, map_win_height; int map_tile_width, map_tile_height; + struct timer *t=new_timer_start(TIMER_USER,TIMER_ACTIVE); get_mapview_dimensions(&map_view_x0, &map_view_y0, &map_win_width, &map_win_height); @@ -402,6 +404,9 @@ } show_city_descriptions(); + freelog(LOG_NORMAL, "update_map_canvas_visible of %dx%d = %fms", + map_win_width, map_win_height, + 1000.0 * read_timer_seconds_free(t)); } /**************************************************************************