port gettimeofday to netbsd