2011-07-12 Joel Sherrill <joel.sherrill@oarcorp.com>

* psxtmnanosleep01/init.c, psxtmsleep01/init.c: Do not divide by
	OPERATION_COUNT on single shot times.
This commit is contained in:
Joel Sherrill
2011-07-12 13:25:18 +00:00
parent 91b38c632a
commit af092ef5c3
3 changed files with 10 additions and 8 deletions

View File

@@ -1,3 +1,8 @@
2011-07-12 Joel Sherrill <joel.sherrill@oarcorp.com>
* psxtmnanosleep01/init.c, psxtmsleep01/init.c: Do not divide by
OPERATION_COUNT on single shot times.
2011-07-12 Ricardo Aguirre <el.mastin@ymail.com>
* Makefile.am, configure.ac, psxtmtests_plan.csv: Add psxtmmutex03.

View File

@@ -23,18 +23,17 @@ void *POSIX_Init(
{
long end_time;
struct timespec sleepTime;
sleepTime.tv_sec = 0;
sleepTime.tv_nsec = 0;
puts( "\n\n*** POSIX TIME TEST PSXTMNANOSLEEP01 ***" );
benchmark_timer_initialize();
nanosleep(&sleepTime, (struct timespec *) NULL);
nanosleep( &sleepTime, (struct timespec *) NULL );
end_time = benchmark_timer_read();
put_time("nanosleep - yield X ",end_time,OPERATION_COUNT,0,0);
put_time( "nanosleep - yield", end_time, 1, 0, 0 );
puts( "*** END OF POSIX TIME TEST PSXTMNANOSLEEP01 ***" );

View File

@@ -28,15 +28,13 @@ void *POSIX_Init(
puts( "\n\n*** POSIX TIME TEST PSXTMSLEEP01 ***" );
benchmark_timer_initialize();
sleep(0);
end_time = benchmark_timer_read();
put_time(
"sleep - yield X ",
"sleep - yield",
end_time,
OPERATION_COUNT,
1,
0,
0
);