measure wakeup time