1 |
/****************************************************************************** |
/***************************************************************************** |
|
* * |
|
|
* This file is part of XviD, a free MPEG-4 video encoder/decoder * |
|
|
* * |
|
|
* XviD is free software; you can redistribute it and/or modify it * |
|
|
* under the terms of the GNU General Public License as published by * |
|
|
* the Free Software Foundation; either version 2 of the License, or * |
|
|
* (at your option) any later version. * |
|
|
* * |
|
|
* XviD is distributed in the hope that it will be useful, but * |
|
|
* WITHOUT ANY WARRANTY; without even the implied warranty of * |
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * |
|
|
* GNU General Public License for more details. * |
|
|
* * |
|
|
* You should have received a copy of the GNU General Public License * |
|
|
* along with this program; if not, write to the Free Software * |
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * |
|
|
* * |
|
|
******************************************************************************/ |
|
|
|
|
|
/****************************************************************************** |
|
|
* * |
|
|
* timer.c, some timing functions * |
|
|
* * |
|
|
* Copyright (C) 2001 - Michael Militzer <isibaar@xvid.org> * |
|
|
* * |
|
|
* For more information visit the XviD homepage: http://www.xvid.org * |
|
|
* * |
|
|
******************************************************************************/ |
|
|
|
|
|
/****************************************************************************** |
|
|
* * |
|
|
* Revision history: * |
|
2 |
* |
* |
3 |
* 26.03.2002 interlacing timer added |
* XVID MPEG-4 VIDEO CODEC |
4 |
* 21.12.2001 edges error fixed |
* - Some timing functions to profile the library - |
5 |
* 17.11.2001 small clean up (Isibaar) * |
* |
6 |
* 13.11.2001 inlined rdtsc call and moved to portab.h (Isibaar) * |
* NB : not thread safe and only for debug purposes. |
7 |
* 02.11.2001 initial version (Isibaar) * |
* |
8 |
* * |
* Copyright(C) 2002 Michael Militzer |
9 |
******************************************************************************/ |
* |
10 |
|
* This program is an implementation of a part of one or more MPEG-4 |
11 |
|
* Video tools as specified in ISO/IEC 14496-2 standard. Those intending |
12 |
|
* to use this software module in hardware or software products are |
13 |
|
* advised that its use may infringe existing patents or copyrights, and |
14 |
|
* any such use would be at such party's own risk. The original |
15 |
|
* developer of this software module and his/her company, and subsequent |
16 |
|
* editors and their companies, will have no liability for use of this |
17 |
|
* software or modifications or derivatives thereof. |
18 |
|
* |
19 |
|
* This program is free software; you can redistribute it and/or modify |
20 |
|
* it under the terms of the GNU General Public License as published by |
21 |
|
* the Free Software Foundation; either version 2 of the License, or |
22 |
|
* (at your option) any later version. |
23 |
|
* |
24 |
|
* This program is distributed in the hope that it will be useful, |
25 |
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
26 |
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
27 |
|
* GNU General Public License for more details. |
28 |
|
* |
29 |
|
* You should have received a copy of the GNU General Public License |
30 |
|
* along with this program; if not, write to the Free Software |
31 |
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
32 |
|
* |
33 |
|
* $Id$ |
34 |
|
* |
35 |
|
****************************************************************************/ |
36 |
|
|
37 |
#include <stdio.h> |
#include <stdio.h> |
38 |
#include <time.h> |
#include <time.h> |
39 |
#include "timer.h" |
#include "timer.h" |
40 |
|
|
41 |
#if defined(_PROFILING_) |
#ifdef _PROFILING_ |
42 |
|
|
43 |
struct ts |
struct ts |
44 |
{ |
{ |