Fix for possible overflow

Avoid integer overflow on platforms with 32bit suseconds_t.