timer:tc 可以测试出函数调用耗时,是erlang性能测试的好工具。 timer:tc(?MODULE, Fun, [Args]). 转载于:https://www.cnblogs.com/rsblog/p/4344507.html