The erlang documentation says:
Erlang: now ()
[...] It is also guaranteed that subsequent calls to this BIF return continuously rising values. Therefore, the return value from now () can be used to generate unique time stamps, and if it is called in a narrow loop on a fast machine, the node time may be distorted. [...]
I find this a bit strange (especially considering that the grain size is a microsecond). Why was this done like this?
source
share