EDIT: I know itโs better to use types to represent units. Please donโt write yet another comment about it. You can find my response to that point here: https://programming.dev/comment/219329
The better fix is to try to use types that represent those units or data types (e.g. duration instead of ms). Makes it harder to accidentally use the wrong units and documents the code / intent better.