Posted By

fuzzylollipop on 11/30/09


timestamp MS erlang milliseconds

Versions (?)

Who likes this?

2 people have marked this snippet as a favorite


How to get a timestamp in milliseconds from Erlang

 / Published in: Other

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

Report this snippet  

You need to login to post a comment.