fix blocking call in signal handler, switch to CPU nanosecond time