Files
rtems/testsuites/tmitrontests/include/timesys.h
Joel Sherrill 1d9a2fc5ab Patch rtems-rc-19991123-rc-0.diff from Ralf Corsepius <corsepiu@faw.uni-ulm.de>
which (among other things) converted the mptests to automake.

    SUB_DIRS was used instead of SUBDIRS in some Makefile.ins
    (apparently a leftover from moving the start* directories)

    Addtional major bugs:
    * psxtests/include was empty (incomplete psxtests changes).
    * bogus handling of *.scn in itrontests (screens/sptests vs.
      screens/itrontests installation dirs)

    In addition I have added a few more changes (I couldn't resist)
    * automake support for itrontests
    * OPERATION_COUNT support in tmitrontests/
    * automake support for tmitrontests
    * automake suppport for mptests
    * Some (minor) corrections to several configure.in/Makefile.ams

    => c/src/tests/ is completly under automake control, now.
    => we could start to sort out the structural issues with c/src/tests
      (tests/support, stubdr, tools, get "make dist" working)
1999-11-29 15:45:11 +00:00

56 lines
1.2 KiB
C

/* 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.OARcorp.com/rtems/license.html.
*
* $Id$
*/
#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 */