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 |
* - Timer functions (used for internal debugging) - |
5 |
* 17.11.2001 small clean up (Isibaar) * |
* |
6 |
* 13.11.2001 inlined rdtsc call and moved to portab.h (Isibaar) * |
* Copyright(C) 2002 Michael Militzer <isibaar@xvid.org> |
7 |
* 02.11.2001 initial version (Isibaar) * |
* |
8 |
* * |
* 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 |
10 |
|
* the Free Software Foundation ; either version 2 of the License, or |
11 |
|
* (at your option) any later version. |
12 |
|
* |
13 |
|
* This program is distributed in the hope that it will be useful, |
14 |
|
* but WITHOUT ANY WARRANTY ; without even the implied warranty of |
15 |
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
16 |
|
* GNU General Public License for more details. |
17 |
|
* |
18 |
|
* You should have received a copy of the GNU General Public License |
19 |
|
* along with this program ; if not, write to the Free Software |
20 |
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
21 |
|
* |
22 |
|
* $Id$ |
23 |
|
* |
24 |
|
****************************************************************************/ |
25 |
|
|
26 |
#include <stdio.h> |
#include <stdio.h> |
27 |
#include <time.h> |
#include <time.h> |
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 |
{ |
{ |