3 ms·
In a lot of software you can enter units into input fields. For example in Blender I can move an object in a direction by entering something like: `(1m+5inch)/2
by blenderdt 5y ago
In a lot of software you can enter units into input fields.
For example in Blender I can move an object in a direction by entering something like: `(1m+5inch)/2`. Or I can set the max render time to `20sec` or `2min`.
When the input box is a function the only unit you need to know is 'distance'. So I don't completely agree with the article. A sleep function does not need the unit in it's name but should accept a domain unit: duration. The function itself can convert it to something the function can handle.
`sleep(2s+5ms)` should just sleep 2 seconds and 5 milliseconds.