我想知道一个特定函数使用了多少毫秒。所以我到处寻找,但是找不到一种精确到毫秒的Ruby时间。
您如何做到这一点?在大多数编程语言中,它只是类似于
start = now.milliseconds myfunction() end = now.milliseconds time = end - start
https://stackoverflow.com/questions/2289381
相似问题