Skip to content

Instantly share code, notes, and snippets.

@hfeeki
Forked from DimitryDushkin/new_gist_file
Created February 21, 2014 06:16
Show Gist options
  • Save hfeeki/9129670 to your computer and use it in GitHub Desktop.
Save hfeeki/9129670 to your computer and use it in GitHub Desktop.
-spec get_timestamp() -> integer().
get_timestamp() ->
{Mega, Sec, Micro} = os:timestamp(),
(Mega*1000000 + Sec)*1000 + round(Micro/1000).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment