tv_sec and tv_usec switched to longs