forked from Imagelibrary/rtems
2007-12-13 Joel Sherrill <joel.sherrill@OARcorp.com>
* sp07/init.c, sp07/sp07.scn, sp07/task1.c: Add tests for using notepad with the current task's ID or SELF * sp09/screen02.c, sp09/screen04.c, sp09/sp09.scn: Add test missing test cases for clock_get.
This commit is contained in:
@@ -22,6 +22,8 @@ void Screen4()
|
||||
{
|
||||
rtems_event_set event_out;
|
||||
rtems_time_of_day time;
|
||||
struct timeval tv;
|
||||
time_t seconds;
|
||||
rtems_status_code status;
|
||||
|
||||
status = rtems_event_receive(
|
||||
@@ -81,4 +83,11 @@ void Screen4()
|
||||
status = rtems_clock_set( &time );
|
||||
directive_failed( status, "rtems_clock_set" );
|
||||
puts( " - RTEMS_SUCCESSFUL" );
|
||||
|
||||
status = rtems_clock_get( RTEMS_CLOCK_GET_TIME_VALUE, &tv );
|
||||
directive_failed( status, "clock_get time value OK" );
|
||||
|
||||
seconds = tv.tv_sec;
|
||||
printf( "TA1 - current time - %s\n", ctime(&seconds) );
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user