Redo the timing tool

- add sigma calculation, printout
- add get_value test
- make test running a bit less convoluted, all the math and
  and counting is done in a single test function
Add checks for -lm, math.h