Skip to content

Instantly share code, notes, and snippets.

@jarrodhroberson
Created February 14, 2014 03:21
Show Gist options
  • Save jarrodhroberson/8995236 to your computer and use it in GitHub Desktop.
Save jarrodhroberson/8995236 to your computer and use it in GitHub Desktop.
How to get a timestamp in milliseconds from Erlang
% gets a timestamp in ms from the epoch
get_timestamp() ->
{Mega,Sec,Micro} = erlang:now(),
(Mega*1000000+Sec)*1000000+Micro.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment