]> rtime.felk.cvut.cz Git - frescor/demo.git/blob - src/utils/loadcpu.c
Merge branch 'master' of rtime.felk.cvut.cz:frescor/demo
[frescor/demo.git] / src / utils / loadcpu.c
1 #include <stdio.h>
2 #include <unistd.h>
3
4 volatile unsigned long long i = 200000000;
5 int main(int argc, char *argv[])
6 {
7         if (argc > 1)
8                 sleep(strtol(argv[1], NULL, 10));
9         if (argc > 2)
10                 printf("%s\n", argv[2]);
11         while (i > 0) i--;
12         return 0;
13 }