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

Miguel Morales therevoltingx@REDACTED
Tue Aug 24 13:26:37 CEST 2010


I'll keep that in mind.  Didn't know it was expensive.  Thanks.

On Tue, Aug 24, 2010 at 4:16 AM, Max Lapshin <max.lapshin@REDACTED> wrote:
> 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
>



-- 
http://developingthedream.blogspot.com/,
http://diastrofunk.com,
http://www.youtube.com/user/revoltingx, ~Isaiah 55:8-9


More information about the erlang-questions mailing list