move timeval-diff function into utils.h from app_alarmreceiver.c