[erlang-questions] perform a function on a fixed time interval

Max Lapshin max.lapshin@REDACTED
Tue Aug 24 13:16:05 CEST 2010


On Tue, Aug 24, 2010 at 3:13 PM, Miguel Morales <therevoltingx@REDACTED> wrote:
>
> get_timestamp() ->
>    {Mega,Sec,Micro} = erlang:now(),
>    (Mega*1000000+Sec)*1000000+Micro.
>

erlang:now may be very expensive, if you use if often


More information about the erlang-questions mailing list