git-svn-id: http://www.frescor.org/private/svn/frescor/fosa/trunk@883
35b4ef3e-fd22-0410-ab77-
dab3279adceb
int terror = -1;
struct timespec period = {2, 500000000}; // 2.5 secs
int terror = -1;
struct timespec period = {2, 500000000}; // 2.5 secs
- struct timespec activation_time = {-1, -1};
- struct timespec old_activation_time = {-1, -1};
-
frsh_thread_id_t jump_handler_thread;
frsh_signal_t jump_signal;
frsh_thread_id_t jump_handler_thread;
frsh_signal_t jump_signal;
&jump_timer, jump_handler_thread) );
&jump_timer, jump_handler_thread) );
- /* For statistical purposes we read the activation time */
- PXW( fosa_clock_get_time(FOSA_CLOCK_REALTIME, &activation_time) );
-
/* Periodic loop */
/*****************/
while (1)
{
int jumped = -1;
struct timespec budget = {1, 400000000}; // 1.4 secs
/* Periodic loop */
/*****************/
while (1)
{
int jumped = -1;
struct timespec budget = {1, 400000000}; // 1.4 secs
+ struct timespec activation_time = {-1, -1};
+ struct timespec old_activation_time = {-1, -1};
+
+
+ /* For statistical purposes we read the activation time */
+ PXW( fosa_clock_get_time(FOSA_CLOCK_REALTIME, &activation_time) );
+
+
+
/* Start of the interruptible block */
/************************************/
/* Start of the interruptible block */
/************************************/
/*************************************************/
PXW( fosa_clock_get_time(FOSA_CLOCK_REALTIME, &old_activation_time) );
decr_timespec(&old_activation_time, &activation_time);
/*************************************************/
PXW( fosa_clock_get_time(FOSA_CLOCK_REALTIME, &old_activation_time) );
decr_timespec(&old_activation_time, &activation_time);
- printf("End thrad %6.3f\n", t2d(old_activation_time) );
+ printf("Execution time: %6.3f\n", t2d(old_activation_time) );
/* And we program the next loop */
incr_timespec(&activation_time, &period);
/* And we program the next loop */
incr_timespec(&activation_time, &period);