[cvs] / xvidcore / src / utils / timer.h Repository:
ViewVC logotype

Diff of /xvidcore/src/utils/timer.h

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

revision 1.5, Thu Sep 5 21:20:51 2002 UTC revision 1.9.2.1, Mon Jun 9 13:55:53 2003 UTC
# Line 1  Line 1 
1  /*****************************************************************************  /*****************************************************************************
2   *   *
3   *  XVID MPEG-4 VIDEO CODEC   *  XVID MPEG-4 VIDEO CODEC
4   *  - Simple profiling functions header file -   *  - Timer related header (used for internal debugging)  -
5   *   *
6   *  Copyright(C) 2002 Michael Militzer   *  Copyright(C) 2002 Michael Militzer <isibaar@xvid.org>
  *  
  *  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 32  Line 23 
23   *   *
24   ****************************************************************************/   ****************************************************************************/
25    
26  #ifndef _TIMER_H  #ifndef _ENCORE_TIMER_H
27  #define _TIMER_H  #define _ENCORE_TIMER_H
28    
29  /*****************************************************************************  #if defined(_PROFILING_)
  * Prototypes  
  ****************************************************************************/  
   
 #ifdef _PROFILING_  
30    
31  #include "../portab.h"  #include "../portab.h"
32    
33  uint64_t count_frames;  uint64_t count_frames;
34    
 /* Here we declare external symbols defined in timer.h */  
35  extern void start_timer();  extern void start_timer();
36  extern void start_global_timer();  extern void start_global_timer();
37  extern void stop_dct_timer();  extern void stop_dct_timer();
# Line 67  Line 53 
53    
54  #else  #else
55    
 /*  
  * We define dummy inline functions, a good compiler should just  
  *  remove the function call  
  */  
   
56  static __inline void  static __inline void
57  start_timer()  start_timer()
58  {  {
# Line 145  Line 126 
126  {  {
127  }  }
128    
129  #endif /* _PROFILING_ */  #endif
130    
131  #endif /* _TIMER_H_ */  #endif /* _TIMER_H_ */

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.9.2.1

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