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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rtems-20020807/] [c/] [src/] [tests/] [tmitrontests/] [include/] [timesys.h] - Rev 1765

Compare with Previous | Blame | View Log

/*  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.
 *
 *  timesys.h,v 1.3 1999/11/29 15:45:10 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 */
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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