[erlang-questions] erlang:send_after accuracy on os x

Camille Troillard <>
Tue May 5 10:45:12 CEST 2009


On Tue, May 5, 2009 at 9:19 AM, Rapsey <> wrote:

> I resorted to using a simple external program that I open a port to:
> int main(int argc, char *argv[])
> {
>     for (;;)
>     {
>         char c[1];
>         usleep(3000);
>
>         if (write(1, c, 1) <= 0)
>             break;
>     }
>
>       return 0;
> }
>
> Works just fine :)


That is a simple, yet nice solution.
I would be curious to know why timers are such a big problem in Erlang.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20090505/7f513723/attachment.html>


More information about the erlang-questions mailing list