If possible, it&#x27;s much better to handle physical units with the type system.  If your timeout is a timedelta class (or duration&#x2F;difftime&#x2F;interval etc.), then this whole issue disappears.