3 ms·
Well, the only correct way to do it then is the way Python does it. The SI unit is seconds. So unless you have some weird aversion to using decimals to represe
by antisthenes 5y ago
Well, the only correct way to do it then is the way Python does it.
The SI unit is seconds. So unless you have some weird aversion to using decimals to represent smaller units, any kind of delay function should take input in seconds.
Not sure if this should be a cautionary tale about using units so much as using the correct units in the first place.
Apparently there's a Java function that lets you specify time units as secondary input. Use that to make in unambiguous.
- mmis1000 5y agoWell, no. There are language's default unit is milliseconds. The foundation of web, javascript is one of them. Send seconds in api to a frond-end without documenting is just confusing and hugely ambiguous. And it makes more sense from the GUI's perspective. What did you mean paint next frame after 0.016s? Isn't it much easier to read when write it as 16ms?