source: rtems/testsuites/ada/support/time_test_support.ads @ 48aa4b5d

Last change on this file since 48aa4b5d was ee537ea, checked in by Sebastian Huber <sebastian.huber@…>, on Oct 12, 2017 at 8:00:10 AM

ada-tests: Move to testsuites/ada

This solves a build dependency issue, e.g. building tests before
librtemsbsp.a exists.

Close #3079.

  • Property mode set to 100644
File size: 1.2 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--
16--  The license and distribution terms for this file may in
17--  the file LICENSE in this distribution or at
18--  http://www.rtems.org/license/LICENSE.
19--
20
21with RTEMS;
22
23package TIME_TEST_SUPPORT is
24
25--
26--  The following constants define the number of times a directive
27--  will be performed in the Timing Suite.
28--
29
30   OPERATION_COUNT : constant RTEMS.UNSIGNED32 := 100;
31   ITERATION_COUNT : constant RTEMS.UNSIGNED32 := 100;
32
33--
34--  PUT_TIME
35--
36--  DESCRIPTION:
37--
38--  This subprogram prints the MESSAGE followed by the length of
39--  time which each individual operation took.  All times are
40--  in microseconds.
41--
42
43   procedure PUT_TIME (
44      MESSAGE          : in     STRING;
45      TOTAL_TIME       : in     RTEMS.UNSIGNED32;
46      ITERATIONS       : in     RTEMS.UNSIGNED32;
47      LOOP_OVERHEAD    : in     RTEMS.UNSIGNED32;
48      CALLING_OVERHEAD : in     RTEMS.UNSIGNED32
49   );
50
51end TIME_TEST_SUPPORT;
Note: See TracBrowser for help on using the repository browser.