📄 timesys.h
字号:
/* timesys.h * * This header file contains the global variables for the Time * suite. * * COPYRIGHT (c) 1989-1999. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be * found in the file LICENSE in this distribution or at * http://www.rtems.com/license/LICENSE. * * $Id: timesys.h,v 1.3.8.1 2003/09/04 18:46:41 joel Exp $ */#include <tmacros.h>/* * How many times a particular operation is performed while timed. */#ifndef OPERATION_COUNT #define OPERATION_COUNT 100#endif/* functions */#define put_time( _message, _total_time, \ _iterations, _loop_overhead, _overhead ) \ printf( \ "%s %d\n", \ (_message), \ (((_total_time) - (_loop_overhead)) / (_iterations)) - (_overhead) \ )#if defined(STACK_CHECKER_ON) || defined(RTEMS_DEBUG)#define Print_Warning() \ do { \ puts( \ "\n" \ "THE TIMES REPORTED BY THIS TEST INCLUDE DEBUG CODE!\n" \ "\n" \ ); \ } while (0)#else#define Print_Warning()#endif/* variables */TEST_EXTERN volatile unsigned32 end_time; /* ending time variable */TEST_EXTERN volatile unsigned32 overhead; /* loop overhead variable *//* end of include file */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -