Converted timeval_sub_timespec() to timeval_cmp().