diff options
author | Simon MacMullen <simon@rabbitmq.com> | 2010-11-05 14:05:51 +0000 |
---|---|---|
committer | Simon MacMullen <simon@rabbitmq.com> | 2010-11-05 14:05:51 +0000 |
commit | 7ed10703eeea9379736e32cec751f23c3393aa4c (patch) | |
tree | e6c226ad9082eae2ead87d550db78738ad5c7d89 | |
parent | 174ffe5de5ae951e0d74e31a94b733768de41e0d (diff) | |
parent | 5b4bec8b1babe011e5eaa03ca3572bcd7f47e1c4 (diff) | |
download | rabbitmq-server-7ed10703eeea9379736e32cec751f23c3393aa4c.tar.gz |
Merged bug23299 (Erlang internode communication fails with user_sup undefined)
-rw-r--r-- | src/rabbit_misc.erl | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/rabbit_misc.erl b/src/rabbit_misc.erl index 086d260e..e5c30c06 100644 --- a/src/rabbit_misc.erl +++ b/src/rabbit_misc.erl @@ -64,6 +64,7 @@ -export([recursive_delete/1, dict_cons/3, orddict_cons/3, unlink_and_capture_exit/1]). -export([get_options/2]). +-export([now_ms/0]). -import(mnesia). -import(lists). @@ -184,6 +185,7 @@ -spec(unlink_and_capture_exit/1 :: (pid()) -> 'ok'). -spec(get_options/2 :: ([optdef()], [string()]) -> {[string()], [{string(), any()}]}). +-spec(now_ms/0 :: () -> non_neg_integer()). -endif. @@ -721,3 +723,6 @@ get_flag(K, [Nk | As]) -> {[Nk | As1], V}; get_flag(_, []) -> {[], false}. + +now_ms() -> + timer:now_diff(now(), {0,0,0}) div 1000. |