complete conversion to gettimeofday and trap sigint