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

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

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

revision 1.3, Wed Jun 12 20:38:41 2002 UTC revision 1.6, Sun Nov 17 00:51:11 2002 UTC
# Line 1  Line 1 
1   /******************************************************************************  /*****************************************************************************
2    *                                                                            *   *
3    *  This file is part of XviD, a free MPEG-4 video encoder/decoder            *   *  XVID MPEG-4 VIDEO CODEC
4    *                                                                            *   *  - Some timing functions to profile the library -
5    *  XviD is free software; you can redistribute it and/or modify it           *   *
6    *  under the terms of the GNU General Public License as published by         *   *  NB : not thread safe and only for debug purposes.
7    *  the Free Software Foundation; either version 2 of the License, or         *   *
8    *  (at your option) any later version.                                       *   *  Copyright(C) 2002 Michael Militzer <isibaar@xvid.org>
9    *                                                                            *   *
10    *  XviD is distributed in the hope that it will be useful, but               *   *  This file is part of XviD, a free MPEG-4 video encoder/decoder
11    *  WITHOUT ANY WARRANTY; without even the implied warranty of                *   *
12    *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the             *   *  XviD is free software; you can redistribute it and/or modify it
13    *  GNU General Public License for more details.                              *   *  under the terms of the GNU General Public License as published by
14    *                                                                            *   *  the Free Software Foundation; either version 2 of the License, or
15    *  You should have received a copy of the GNU General Public License         *   *  (at your option) any later version.
16    *  along with this program; if not, write to the Free Software               *   *
17    *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA  *   *  This program is distributed in the hope that it will be useful,
18    *                                                                            *   *  but WITHOUT ANY WARRANTY; without even the implied warranty of
19    ******************************************************************************/   *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20     *  GNU General Public License for more details.
21   /******************************************************************************   *
22    *                                                                            *   *  You should have received a copy of the GNU General Public License
23    *  timer.c, some timing functions                                            *   *  along with this program; if not, write to the Free Software
24    *                                                                            *   *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
25    *  Copyright (C) 2001 - Michael Militzer <isibaar@xvid.org>                  *   *
26    *                                                                            *   *  Under section 8 of the GNU General Public License, the copyright
27    *  For more information visit the XviD homepage: http://www.xvid.org         *   *  holders of XVID explicitly forbid distribution in the following
28    *                                                                            *   *  countries:
29    ******************************************************************************/   *
30     *    - Japan
31   /******************************************************************************   *    - United States of America
32    *                                                                            *   *
33    *  Revision history:                                                         *   *  Linking XviD statically or dynamically with other modules is making a
34    *   *  combined work based on XviD.  Thus, the terms and conditions of the
35    *  26.03.2002 interlacing timer added   *  GNU General Public License cover the whole combination.
36    *  21.12.2001 edges error fixed   *
37    *  17.11.2001 small clean up (Isibaar)                                       *   *  As a special exception, the copyright holders of XviD give you
38    *  13.11.2001 inlined rdtsc call and moved to portab.h (Isibaar)             *   *  permission to link XviD with independent modules that communicate with
39    *  02.11.2001 initial version (Isibaar)                                      *   *  XviD solely through the VFW1.1 and DShow interfaces, regardless of the
40    *                                                                            *   *  license terms of these independent modules, and to copy and distribute
41    ******************************************************************************/   *  the resulting combined work under terms of your choice, provided that
42     *  every copy of the combined work is accompanied by a complete copy of
43     *  the source code of XviD (the version of XviD used to produce the
44     *  combined work), being distributed under the terms of the GNU General
45     *  Public License plus this exception.  An independent module is a module
46     *  which is not derived from or based on XviD.
47     *
48     *  Note that people who make modified versions of XviD are not obligated
49     *  to grant this special exception for their modified versions; it is
50     *  their choice whether to do so.  The GNU General Public License gives
51     *  permission to release a modified version without this exception; this
52     *  exception also makes it possible to release a modified version which
53     *  carries forward this exception.
54     *
55     * $Id$
56     *
57     ****************************************************************************/
58    
59  #include <stdio.h>  #include <stdio.h>
60  #include <time.h>  #include <time.h>
61  #include "timer.h"  #include "timer.h"
62    
63  #if defined(_PROFILING_)  #ifdef _PROFILING_
64    
65  struct ts  struct ts
66  {  {

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.6

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