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