OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [tests/] [tmitrontests/] [include/] [timesys.h] - Blame information for rev 552

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 unneback
/*  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: timesys.h,v 1.2 2001-09-27 12:02:39 chris Exp $
14
 */
15
 
16
#include <tmacros.h>
17
 
18
/*
19
 *   How many times a particular operation is performed while timed.
20
 */
21
 
22
#ifndef OPERATION_COUNT 
23
#define OPERATION_COUNT 100
24
#endif
25
 
26
/* functions */
27
 
28
#define put_time( _message, _total_time, \
29
                  _iterations, _loop_overhead, _overhead ) \
30
    printf( \
31
      "%s %d\n", \
32
      (_message), \
33
      (((_total_time) - (_loop_overhead)) / (_iterations)) - (_overhead) \
34
    )
35
 
36
#if  defined(STACK_CHECKER_ON) || defined(RTEMS_DEBUG)
37
#define Print_Warning() \
38
  do { \
39
    puts( \
40
      "\n" \
41
      "THE TIMES REPORTED BY THIS TEST INCLUDE DEBUG CODE!\n" \
42
      "\n" \
43
    ); \
44
  } while (0)
45
 
46
#else
47
#define Print_Warning()
48
#endif
49
 
50
/* variables */
51
 
52
TEST_EXTERN volatile unsigned32 end_time;   /* ending time variable */
53
TEST_EXTERN volatile unsigned32 overhead;   /* loop overhead variable */
54
 
55
/* end of include file */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.