Last change
on this file since b4982004 was
b4982004,
checked in by Joel Sherrill <joel.sherrill@…>, on 09/04/03 at 18:46:41
|
2003-09-04 Joel Sherrill <joel@…>
- include/timesys.h, tmitronsem01/init.c, tmitronsem01/system.h,
tmitronsem01/tmitronsem01.doc: URL for license changed.
|
-
Property mode set to
100644
|
File size:
1.2 KB
|
Line | |
---|
1 | /* 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.rtems.com/license/LICENSE. |
---|
12 | * |
---|
13 | * $Id$ |
---|
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 */ |
---|
Note: See
TracBrowser
for help on using the repository browser.