use `gettimeofday` over `clock`