[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 414, Thu Sep 5 20:36:01 2002 UTC revision 1988, Wed May 18 09:10:05 2011 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)  -
5   *   *
6   *  NB : not thread safe and only for debug purposes.   *  Copyright(C) 2002 Michael Militzer <isibaar@xvid.org>
  *  
  *  Copyright(C) 2002 Michael Militzer  
  *  
  *  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.  
7   *   *
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
# 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.4 2002-09-05 20:36:01 edgomez Exp $   * $Id$
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.414  
changed lines
  Added in v.1988

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