[erlang-questions] now() seems to produce inconsistent timestamps.
Thu Jul 31 23:26:06 CEST 2008
Starting two Eshells on a single machine with the commands:
erl -sname rip
erl -sname rup
X = now(),
Self = self(),
spawn(, fun() -> Self ! now() end),
receive Y ->
io:format("Diff=~w~n", [timer:now_diff(Y, X)])
yields "Diff=-1000" and occational a positive value as one would expect.
(Hostname is Nway.)
Is this a bug or a feature? Does two or more Eshells not agree on the time
when running on the same host???
I'm running this using R12B-3 and the machine has a dual core processor.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions