modify TimeVal class