摘要: 1. timer模块中有函数tc(), 用于度量函数执行所消耗的时间, tc函数的相关源码如下: tc(F) -> Before = os:timestamp(), Val = F(), After = os:timestamp(), {now_diff(After, Before), Val}. 阅读全文
posted @ 2016-03-09 12:00 kamfon 阅读(209) 评论(0) 推荐(0) 编辑