[erlang-questions] negative diference between two calls to now/0
Rodrigo Ahumada M.
rodahummont@REDACTED
Mon Feb 5 14:56:49 CET 2007
El lun, 05-02-2007 a las 11:06 +0100, Per Hedeland escribió:
> Samuel Rivas wrote:
[...]
> > MuS1 and MuS2 are microseconds, not milliseconds. Also, megaseconds
> >difference is not always zero. Each about 11.5 days it changes, so if
> >you ignore then you will get negative values if, for example, you get
> >
> > {828, 1, 653753} - {827, 999999, 676}
> >
> >(example from supervisor.erl)
>
> Good point - and of course the best answer is to use timer:now_diff/2
> instead of rolling your own...
thanks a lot
now, i proceed to punish myself for not reading.
__________________________________________________
Preguntá. Respondé. Descubrí.
Todo lo que querías saber, y lo que ni imaginabas,
está en Yahoo! Respuestas (Beta).
¡Probalo ya!
http://www.yahoo.com.ar/respuestas
More information about the erlang-questions
mailing list