有哪些比较好的计算程序运行时间的工具?比如相应的lib之类,有什么比较好的技巧和注意的地方?
|
ywencnApr 14, 2013
1
木有听懂。。。
|
|
crazybubbleApr 15, 2013
2
你可以通过在main function里的头尾取当前时间,然后相减得到运行时间。或者可以去找找profiling tool,那种是专门用来评测程序运行性能的工具,不仅能告诉你程序跑了多少时间,还能够告诉你哪部分时间花的最久等等的信息。
|
|
jetbillwinApr 15, 2013
3
time
|
|
willwenApr 15, 2013
4
$ time node test
|
|
xinhugoApr 15, 2013
5
ManicTime(小道君推荐的)
|
|
judezhanApr 17, 2013
6
time
|
|
pengduApr 17, 2013
7
1, linux: time
2, c++: gprof 3, 自己在函数里面写桩,用#define来控制 |
|
bgtwoiguApr 18, 2013
8
intel vtune
|