Our tests are designed to run for 100 ms of CPU time, but this is currently
measured with `ITIMER_VIRTUAL` which means only when the process is executing
in userspace. Switching to `ITIMER_PROF` would also account for the time spent
when the system is running on behalf of the process, which seems closer to what
we want.
it.it_interval.tv_sec=0;
it.it_interval.tv_usec=0;
- signal(SIGVTALRM, alarmHandler);
- setitimer(ITIMER_VIRTUAL, &it, 0);
+ signal(SIGPROF, alarmHandler);
+ setitimer(ITIMER_PROF, &it, 0);
unsigned int runs=0;
g_stop=false;