[svn] / trunk / xvidcore / src / utils / timer.c Repository:
ViewVC logotype

Diff of /trunk/xvidcore/src/utils/timer.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 603, Sat Oct 19 11:41:12 2002 UTC revision 1382, Mon Mar 22 22:36:25 2004 UTC
# Line 1  Line 1 
1  /*****************************************************************************  /*****************************************************************************
2   *   *
3   *  XVID MPEG-4 VIDEO CODEC   *  XVID MPEG-4 VIDEO CODEC
4   *  - Some timing functions to profile the library -   *  - Timer functions (used for internal debugging)  -
  *  
  *  NB : not thread safe and only for debug purposes.  
5   *   *
6   *  Copyright(C) 2002 Michael Militzer <isibaar@xvid.org>   *  Copyright(C) 2002 Michael Militzer <isibaar@xvid.org>
7   *   *
  *  This program is an implementation of a part of one or more MPEG-4  
  *  Video tools as specified in ISO/IEC 14496-2 standard.  Those intending  
  *  to use this software module in hardware or software products are  
  *  advised that its use may infringe existing patents or copyrights, and  
  *  any such use would be at such party's own risk.  The original  
  *  developer of this software module and his/her company, and subsequent  
  *  editors and their companies, will have no liability for use of this  
  *  software or modifications or derivatives thereof.  
  *  
8   *  This program is free software; you can redistribute it and/or modify   *  This program is free software; you can redistribute it and/or modify
9   *  it under the terms of the GNU General Public License as published by   *  it under the terms of the GNU General Public License as published by
10   *  the Free Software Foundation; either version 2 of the License, or   *  the Free Software Foundation; either version 2 of the License, or
# Line 30  Line 19 
19   *  along with this program; if not, write to the Free Software   *  along with this program; if not, write to the Free Software
20   *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA   *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
21   *   *
22   * $Id: timer.c,v 1.5 2002-10-19 11:41:12 edgomez Exp $   * $Id: timer.c,v 1.9 2004-03-22 22:36:24 edgomez Exp $
23   *   *
24   ****************************************************************************/   ****************************************************************************/
25    
# Line 38  Line 27 
27  #include <time.h>  #include <time.h>
28  #include "timer.h"  #include "timer.h"
29    
30  #ifdef _PROFILING_  #if defined(_PROFILING_)
31    
32  struct ts  struct ts
33  {  {
# Line 88  Line 77 
77          return (double) (y - x) / 1000.;          return (double) (y - x) / 1000.;
78  }  }
79    
80  // set everything to zero //  /* set everything to zero */
81  void  void
82  init_timer()  init_timer()
83  {  {

Legend:
Removed from v.603  
changed lines
  Added in v.1382

No admin address has been configured
ViewVC Help
Powered by ViewVC 1.0.4