Timing.h
上传用户:super_houu
上传日期:2008-09-21
资源大小:4099k
文件大小:2k
源码类别:

DVD

开发平台:

Others

  1. /****************************************************************************************
  2.  *  Copyright (c) 2002 ZORAN Corporation, All Rights Reserved
  3.  *  THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF ZORAN CORPORATION
  4.  *
  5.  *  File: $Workfile: Timing.h $             
  6.  *
  7.  * Description: 
  8.  * ============
  9.  * 
  10.  * 
  11.  * Log:
  12.  * ====
  13.  * $Revision: 4 $
  14.  * Last Modified by $Author: Nirm $ at $Modtime: 1/05/02 9:27 $ 
  15.  ****************************************************************************************
  16.  * Updates:
  17.  ****************************************************************************************
  18.  * $Log: /I49/H49V/Playcore/Timing/Timing.h $
  19.  * 
  20.  * 4     7/05/02 16:00 Nirm
  21.  * Code cleanup.
  22.  * 
  23.  * 3     23/04/02 9:36 Nirm
  24.  * - Added dependency in "Config.h".
  25.  * 
  26.  * 2     9/01/02 16:55 Nirm
  27.  * Corrected Include-Paths.
  28.  ****************************************************************************************/
  29. #include "Config.h" // Global Configuration - do not remove!
  30. #include "IncludeSysDefs.h"
  31. #ifdef EVENT_LOG_ENABLED
  32. void timing_init(void);
  33. void timing_reset(void);
  34. void timing_record(char *str);
  35.   // Records the current timerX reading in a cyclic readings array
  36.   // Records the time + the ID to enable tarceing
  37. void timing_print(void);
  38.   // Prints the timing array in mSec resolution and resets the array
  39. #endif // EVENT_LOG_ENABLED
  40. void delay_us(ULONG period_us);
  41. ULONG timing_get_clock(void);
  42. ULONG timing_get_diff(ULONG start, ULONG end);
  43. BOOL timing_is_timeout(ULONG start_time, ULONG timeout);