summaryrefslogtreecommitdiffstats
path: root/c/src/ada-tests/support/timer_driver.adb
blob: ce3570e1030dccc0e1f83c46b12b63ef058e88d4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
--
--  Timer_Driver / Body
--
--  Description:
--
--  This package is the body for the Timer Driver.
--
--  Dependencies: 
--
--  
--
--  COPYRIGHT (c) 1989-2009.
--  On-Line Applications Research Corporation (OAR).
--
--  The license and distribution terms for this file may in
--  the file LICENSE in this distribution or at
--  http://www.rtems.com/license/LICENSE.
--

with Interfaces;

package body Timer_Driver is

--PAGE
--
--  Empty_function
--
--
   procedure Empty_Function 
   is
   begin
      Null;
   end Empty_Function;

--PAGE
--
--  Set_Find_Average_Overhead
--
--
 
   procedure Set_Find_Average_Overhead (
      Find_Flag : in     Standard.Boolean
   ) is
      procedure Set_Find_Average_Overhead_base (
         Find_Flag : in     Interfaces.Unsigned_8
      );
      pragma Import (C, Set_Find_Average_Overhead_base,
         "benchmark_timer_disable_subtracting_average_overhead");
      c: Interfaces.Unsigned_8;
   begin
      if Find_Flag then
        c := 1;
      else
        c := 0;
      end if;
      Set_Find_Average_Overhead_base (c);
   end Set_Find_Average_Overhead;

end Timer_Driver;