difftime overflows when it shouldn't