source: rtems/c/src/ada-tests/support/time_test_support.ads @ cd9dac0

Last change on this file since cd9dac0 was 5d0f4a56, checked in by Joel Sherrill <joel.sherrill@…>, on 06/03/97 at 22:49:47

new files

  • Property mode set to 100644
File size: 1.3 KB
Line 
1--
2--  TIME_TEST_SUPPORT / SPECIFICATION
3--
4--  DESCRIPTION:
5--
6--  This package provides routines which aid the individual tests in
7--  the Timing Test Suite and simplify their design and operation.
8--
9--  DEPENDENCIES:
10--
11-- 
12--
13--  COPYRIGHT (c) 1989-1997.
14--  On-Line Applications Research Corporation (OAR).
15--  Copyright assigned to U.S. Government, 1994.
16--
17--  The license and distribution terms for this file may in
18--  the file LICENSE in this distribution or at
19--  http://www.OARcorp.com/rtems/license.html.
20--
21--  $Id$
22--
23
24with RTEMS;
25
26package TIME_TEST_SUPPORT is
27
28--
29--  The following constants define the number of times a directive
30--  will be performed in the Timing Suite.
31--
32
33   OPERATION_COUNT : constant RTEMS.UNSIGNED32 := 100;
34   ITERATION_COUNT : constant RTEMS.UNSIGNED32 := 100;
35
36--
37--  PUT_TIME
38--
39--  DESCRIPTION:
40--
41--  This subprogram prints the MESSAGE followed by the length of
42--  time which each individual operation took.  All times are
43--  in microseconds.
44--
45
46   procedure PUT_TIME (
47      MESSAGE          : in     STRING;
48      TOTAL_TIME       : in     RTEMS.UNSIGNED32;
49      ITERATIONS       : in     RTEMS.UNSIGNED32;
50      LOOP_OVERHEAD    : in     RTEMS.UNSIGNED32;
51      CALLING_OVERHEAD : in     RTEMS.UNSIGNED32
52   );
53
54end TIME_TEST_SUPPORT;
Note: See TracBrowser for help on using the repository browser.