os:timestamp

This commit is contained in:
Feng 2015-07-05 20:29:04 +08:00
parent 895c9ddaed
commit 1e86f7bc42
1 changed files with 2 additions and 2 deletions

View File

@ -68,11 +68,11 @@ ts() ->
true -> %% R18
erlang:system_time(micro_seconds);
false ->
{MegaSeconds, Seconds, MicroSeconds} = erlang:now(),
{MegaSeconds, Seconds, MicroSeconds} = os:timestamp(),
(MegaSeconds * 1000000 + Seconds) * 1000000 + MicroSeconds
end.
%% code copied from https://github.com/okeuday/uuid.git.
%% Copied from https://github.com/okeuday/uuid.git.
npid() ->
<<NodeD01, NodeD02, NodeD03, NodeD04, NodeD05,
NodeD06, NodeD07, NodeD08, NodeD09, NodeD10,