YI


  • 首页

  • 归档

  • 标签

  • 搜索

C++-计算耗时

发表于 2014-12-23 | 分类于 C++ | |

C++中计算程序的耗时方法。

#include <sys/timeb.h>

struct timeb startTime , endTime;
ftime(&startTime);
...
ftime(&endTime);
cout << (endTime.time-startTime.time)*1000 + (endTime.millitm - startTime.millitm) << "ms" << endl;
# C++
iOS-查看手机所有app的BundleID
iOS-解决Property xxx cannot be found in forward class object异常
YI

YI

347 日志
23 分类
41 标签
GitHub 知乎
© 2023 YI
由 Hexo 强力驱动
主题 - NexT.Mist