summaryrefslogtreecommitdiffstats
path: root/testsuites/tmtests/tmck
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-08-31 16:47:18 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-08-31 16:47:18 +0000
commit4074e70b0390d25b184b1187b8a8c59cf7ead79b (patch)
tree59fb0f95377c8e1b71234c5059a76c138deae15c /testsuites/tmtests/tmck
parent2008-08-31 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-4074e70b0390d25b184b1187b8a8c59cf7ead79b.tar.bz2
2008-08-31 Joel Sherrill <joel.sherrill@oarcorp.com>
* tm01/task1.c, tm02/task1.c, tm03/task1.c, tm04/task1.c, tm05/task1.c, tm06/task1.c, tm07/task1.c, tm08/task1.c, tm09/task1.c, tm10/task1.c, tm11/task1.c, tm12/task1.c, tm13/task1.c, tm14/task1.c, tm15/task1.c, tm16/task1.c, tm17/task1.c, tm18/task1.c, tm19/task1.c, tm20/task1.c, tm21/task1.c, tm22/task1.c, tm23/task1.c, tm24/task1.c, tm25/task1.c, tm26/task1.c, tm27/task1.c, tm28/task1.c, tm29/task1.c, tmck/task1.c, tmoverhd/testtask.c: Rename timer driver methods to follow RTEMS programming conventions.
Diffstat (limited to 'testsuites/tmtests/tmck')
-rw-r--r--testsuites/tmtests/tmck/task1.c34
1 files changed, 17 insertions, 17 deletions
diff --git a/testsuites/tmtests/tmck/task1.c b/testsuites/tmtests/tmck/task1.c
index 9876d80f87..4457c264de 100644
--- a/testsuites/tmtests/tmck/task1.c
+++ b/testsuites/tmtests/tmck/task1.c
@@ -38,7 +38,7 @@ rtems_task Init(
* Tell the Timer Driver what we are doing
*/
- Set_find_average_overhead( 1 );
+ benchmark_timerdisable_subtracting_average_overhead( 1 );
Print_Warning();
@@ -72,8 +72,8 @@ rtems_task Task_1(
check_read_timer();
rtems_test_pause();
- Timer_initialize();
- end_time = Read_timer();
+ benchmark_timerinitialize();
+ end_time = benchmark_timerread();
put_time(
"NULL timer stopped at",
@@ -83,10 +83,10 @@ rtems_test_pause();
0
);
- Timer_initialize();
+ benchmark_timerinitialize();
for ( index = 1 ; index <= 1000 ; index++ )
- (void) Empty_function();
- end_time = Read_timer();
+ (void) benchmark_timerempty_function();
+ end_time = benchmark_timerread();
put_time(
"LOOP (1000) timer stopped at",
@@ -96,10 +96,10 @@ rtems_test_pause();
0
);
- Timer_initialize();
+ benchmark_timerinitialize();
for ( index = 1 ; index <= 10000 ; index++ )
- (void) Empty_function();
- end_time = Read_timer();
+ (void) benchmark_timerempty_function();
+ end_time = benchmark_timerread();
put_time(
"LOOP (10000) timer stopped at",
@@ -109,10 +109,10 @@ rtems_test_pause();
0
);
- Timer_initialize();
+ benchmark_timerinitialize();
for ( index = 1 ; index <= 50000 ; index++ )
- (void) Empty_function();
- end_time = Read_timer();
+ (void) benchmark_timerempty_function();
+ end_time = benchmark_timerread();
put_time(
"LOOP (50000) timer stopped at",
@@ -122,10 +122,10 @@ rtems_test_pause();
0
);
- Timer_initialize();
+ benchmark_timerinitialize();
for ( index = 1 ; index <= 100000 ; index++ )
- (void) Empty_function();
- end_time = Read_timer();
+ (void) benchmark_timerempty_function();
+ end_time = benchmark_timerread();
put_time(
"LOOP (100000) timer stopped at",
@@ -148,8 +148,8 @@ void check_read_timer()
Distribution[ index ] = 0;
for ( index = 1 ; index <= OPERATION_COUNT ; index++ ) {
- Timer_initialize();
- end_time = Read_timer();
+ benchmark_timerinitialize();
+ end_time = benchmark_timerread();
if ( end_time > MAXIMUM_DISTRIBUTION ) {
/*
* Under UNIX a simple process swap takes longer than we