- printf("After interruptible block\n");
-
- /* Now we measure the time duration of the block */
- /*************************************************/
- fosa_clock_get_time(FOSA_CLOCK_REALTIME, &activation_timestamp);
- decr_timespec(&activation_timestamp, &old_activation_timestamp);
- printf("Execution time: %6.3f\n", t2d(activation_timestamp) );
-
- /* And we program the next loop */
- incr_timespec(&old_activation_timestamp, &period);
- clock_nanosleep(FOSA_CLOCK_REALTIME, TIMER_ABSTIME, &activation_timestamp,
- &old_activation_timestamp);