The speed is most likely implicitly multiplied by a unit time.
I'm not saying it's a bad idea, just that it's not really a core application of type systems in real-world programming practice.
You don't need too advanced of a type system to implement what you're talking about. With the caveat that doing it in Java would make the code tedious to write ;-).