Why is erlang: now () specified in such a way that it can distort node time?

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?

+5
source share
1 answer

. os , .

+6

All Articles