Return to Snippet

Revision: 20887
at November 30, 2009 01:57 by fuzzylollipop


Initial Code
% gets a timestamp in ms from the epoch
get_timestamp() ->
    {Mega,Sec,Micro} = erlang:now(),
    (Mega*1000000+Sec)*1000000+Micro.

Initial URL

                                

Initial Description

                                

Initial Title
How to get a timestamp in milliseconds from Erlang

Initial Tags

                                

Initial Language
Other