# HG changeset patch # User arpi_esp # Date 984442487 0 # Node ID 201c2f931497469c84a5f95912e0413cfb720284 # Parent fb1fc94eaff00f0197bfe1acc6a36a099ac5841c added #define SHOW_TIME option... (debug) diff -r fb1fc94eaff0 -r 201c2f931497 libvo/vo_xmga.c --- a/libvo/vo_xmga.c Tue Mar 13 00:13:18 2001 +0000 +++ b/libvo/vo_xmga.c Tue Mar 13 00:14:47 2001 +0000 @@ -1,3 +1,5 @@ + +//#define SHOW_TIME /* * video_out_xmga.c @@ -45,6 +47,12 @@ #include "x11_common.h" +#ifdef SHOW_TIME +#include "../linux/timer.h" +static unsigned int timer=0; +static unsigned int timerd=0; +#endif + static vo_info_t vo_info = { "X11 (Matrox G200/G400 overlay in window using /dev/mga_vid)", @@ -130,6 +138,14 @@ } static void flip_page(void){ +#ifdef SHOW_TIME + unsigned int t; + t=GetTimer(); + printf(" [timer: %08X diff: %6d dd: %6d ] \n",t,t-timer,(t-timer)-timerd); + timerd=t-timer; + timer=t; +#endif + check_events(); vo_mga_flip_page(); }