X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=mart%2Fex10%2Fex10a.c;h=4b0a0a438c3bef61f5eafe0bd48c33759f74197b;hb=4367e5a28ec4d81771a05d9a8631995f5356d270;hp=e69de29bb2d1d6434b8b29ae775ad8c2e48c5391;hpb=52221a5de2943cbe89b14a6dae19ca5276823fc7;p=des2015.git diff --git a/mart/ex10/ex10a.c b/mart/ex10/ex10a.c index e69de29..4b0a0a4 100644 --- a/mart/ex10/ex10a.c +++ b/mart/ex10/ex10a.c @@ -0,0 +1,46 @@ +#include +#include +#include +#include + +#include +#include + +#include + +#define SAMPLES 10000 +RT_TASK task; + +RTIME times[SAMPLES]; + +void taskf(void *arg) +{ + RT_TASK *curtask; + rt_task_set_periodic(NULL, TM_NOW, 1e5); + + unsigned int i; + for(i = 0; i