Someone doing a half-assed refactor doesn't mean it's "dangerous" to encode a unit in a variable or function.
I do agree that generally it's better to use something like a struct that's more flexible, but doing that for every function is also quite verbose. For some functions the time requirement may never change as well.