hush some warnings
use timeval for gettimeofday