summaryrefslogtreecommitdiffstats
path: root/testsuites/tmtests/tm29/task1.c
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites/tmtests/tm29/task1.c')
-rw-r--r--testsuites/tmtests/tm29/task1.c34
1 files changed, 17 insertions, 17 deletions
diff --git a/testsuites/tmtests/tm29/task1.c b/testsuites/tmtests/tm29/task1.c
index 8c078d668f..e916aa213b 100644
--- a/testsuites/tmtests/tm29/task1.c
+++ b/testsuites/tmtests/tm29/task1.c
@@ -39,9 +39,9 @@ rtems_task Init(
Period_name = rtems_build_name( 'P', 'R', 'D', ' ' );
- Timer_initialize();
+ benchmark_timerinitialize();
(void) rtems_rate_monotonic_create( Period_name, &id );
- end_time = Read_timer();
+ end_time = benchmark_timerread();
put_time(
"rtems_rate_monotonic_create",
@@ -51,9 +51,9 @@ rtems_task Init(
CALLING_OVERHEAD_RATE_MONOTONIC_CREATE
);
- Timer_initialize();
+ benchmark_timerinitialize();
(void) rtems_rate_monotonic_period( id, 10 );
- end_time = Read_timer();
+ end_time = benchmark_timerread();
put_time(
"rtems_rate_monotonic_period: initiate period -- returns to caller",
@@ -63,9 +63,9 @@ rtems_task Init(
CALLING_OVERHEAD_RATE_MONOTONIC_PERIOD
);
- Timer_initialize();
+ benchmark_timerinitialize();
(void) rtems_rate_monotonic_period( id, RTEMS_PERIOD_STATUS );
- end_time = Read_timer();
+ end_time = benchmark_timerread();
put_time(
"rtems_rate_monotonic_period: obtain status",
@@ -75,9 +75,9 @@ rtems_task Init(
CALLING_OVERHEAD_RATE_MONOTONIC_PERIOD
);
- Timer_initialize();
+ benchmark_timerinitialize();
(void) rtems_rate_monotonic_cancel( id );
- end_time = Read_timer();
+ end_time = benchmark_timerread();
put_time(
"rtems_rate_monotonic_cancel",
@@ -87,9 +87,9 @@ rtems_task Init(
CALLING_OVERHEAD_RATE_MONOTONIC_CANCEL
);
- Timer_initialize();
+ benchmark_timerinitialize();
(void) rtems_rate_monotonic_delete( id );
- end_time = Read_timer();
+ end_time = benchmark_timerread();
put_time(
"rtems_rate_monotonic_delete: inactive",
@@ -105,9 +105,9 @@ rtems_task Init(
status = rtems_rate_monotonic_period( id, 10 );
directive_failed( status, "rtems_rate_monotonic_period" );
- Timer_initialize();
+ benchmark_timerinitialize();
rtems_rate_monotonic_delete( id );
- end_time = Read_timer();
+ end_time = benchmark_timerread();
put_time(
"rtems_rate_monotonic_delete: active",
@@ -175,7 +175,7 @@ rtems_task Tasks(
Task_count++;
if ( Task_count == 1 )
- Timer_initialize();
+ benchmark_timerinitialize();
(void) rtems_rate_monotonic_period( id, 100 );
}
@@ -186,12 +186,12 @@ rtems_task Low_task(
{
uint32_t index;
- end_time = Read_timer();
+ end_time = benchmark_timerread();
- Timer_initialize();
+ benchmark_timerinitialize();
for ( index=1 ; index <= OPERATION_COUNT ; index++ )
- (void) Empty_function();
- overhead = Read_timer();
+ (void) benchmark_timerempty_function();
+ overhead = benchmark_timerread();
put_time(
"rtems_rate_monotonic_period: conclude periods -- caller blocks",