[juliantec_list] Re:计算一个程序运行的时间用什么函数

  • From: "j.evan" <free123ba@xxxxxxx>
  • To: xiayahuan <xiayahuan@xxxxxxx>
  • Date: Sat, 3 Mar 2012 18:16:41 +0800 (CST)

shell 环境下我一般用time <程序名>来获取运行时间。。
在 2012-03-02 19:09:06,xiayahuan <xiayahuan@xxxxxxx> 写道:
>
>                               clock()函数据说是精确到ms,但在运行程序的时候
>(clock—end) -(clock—start )都是等于0
>换一个复杂的程序结果还是这样。
>求大虾指导。ps:是在linux环境下。
>
>--------------
>xiayahuan
>2012-03-02


Learning, Just As Your Favourite Thing!

Maillist, See http://www.juliantec.info/mlist/mail-lists.html
JulBlog, See http://www.juliantec.info/julblog/summary.php
JulWiki, See http://www.juliantec.info/wiki/
JulJob, see http://www.juliantec.info/juljob/



Other related posts: