[erlang-questions] Sending message at a specific and accurate time

Tony Rogvall tony@REDACTED
Mon Feb 22 15:31:44 CET 2016

> L = fun Loop() -> receive after 1 ->  Loop()  end end.
> spawn_link(L).

That is a process doing minimal sleep, but still sleeps ( I think )

Adding this little ”helper” process changes the timing on my mac to the better.

From 3-4 ms latency to to around 1 or less.

Power cable did not affect the latency for me either.


> On 22 feb 2016, at 13:19, Jesper Louis Andersen <jesper.louis.andersen@REDACTED> wrote:
> On Mon, Feb 22, 2016 at 1:16 PM, Ola Bäckström <Ola.Backstrom@REDACTED> wrote:
> Do you get different result with power cable plugged in compared to not plugged in?
> I controlled for that by trying it with and without the cable plugged. It isn't affecting the latencies.
> Any kind of dynamic timing system shouldn't really affect this either. If anything it ought to improve the precision.
> --
> J.
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20160222/630fb9c6/attachment.bin>

More information about the erlang-questions mailing list