source: rtems/testsuites/tmitrontests/include/timesys.h @ d2b8d742

4.104.114.84.95
Last change on this file since d2b8d742 was d2b8d742, checked in by Jennifer Averett <Jennifer.Averett@…>, on 11/17/99 at 16:58:04

+ Updated copyright information.

  • Property mode set to 100644
File size: 1.2 KB
Line 
1/*  timesys.h
2 *
3 *  This header file contains the global variables for the Time
4 *  suite.
5 *
6 *  COPYRIGHT (c) 1989-1999.
7 *  On-Line Applications Research Corporation (OAR).
8 *
9 *  The license and distribution terms for this file may be
10 *  found in the file LICENSE in this distribution or at
11 *  http://www.OARcorp.com/rtems/license.html.
12 *
13 *  $Id$
14 */
15
16#include <tmacros.h>
17
18/*
19 *   How many times a particular operation is performed while timed.
20 */
21 
22#define OPERATION_COUNT 100
23#define IT_COUNT        100
24
25/* functions */
26
27#define put_time( _message, _total_time, \
28                  _iterations, _loop_overhead, _overhead ) \
29    printf( \
30      "%s %d\n", \
31      (_message), \
32      (((_total_time) - (_loop_overhead)) / (_iterations)) - (_overhead) \
33    )
34
35#if  defined(STACK_CHECKER_ON) || defined(RTEMS_DEBUG)
36#define Print_Warning() \
37  do { \
38    puts( \
39      "\n" \
40      "THE TIMES REPORTED BY THIS TEST INCLUDE DEBUG CODE!\n" \
41      "\n" \
42    ); \
43  } while (0)
44
45#else
46#define Print_Warning()
47#endif
48
49/* variables */
50
51TEST_EXTERN volatile unsigned32 end_time;   /* ending time variable */
52TEST_EXTERN volatile unsigned32 overhead;   /* loop overhead variable */
53
54/* end of include file */
Note: See TracBrowser for help on using the repository browser.