calculate mean packet interval only between first and last packet
reset only clock stats with -r
bash: add tolerance parameter to check_stat()