C/C++????μ?????????е????
???????????? ???????[ 2015/10/26 11:53:13 ] ????????.NET ????
????????????????????к???????????????????????????????????????????????????????????????????????????????н??????????????????????????????????WINDOWS XP?????????????????????????????????????????????????????????????????????????????
??????????????????????????????????????????????????????????????Щ??????????????????????????£?????????3??????1???????о????????????????????????????????????????????????????????С???????????????????????????????????????е????????????????????????????????????????????????????????????????????????????ü????????????????α?????????????????????????——?????
????C++?е?????????clock()??????????????????????clock_t????????time.h??????????????????clock_t clock(void);
????????????????“??????????????”??“?????е???clock()????”?????CPU??????????clock tick????????MSDN?г??????????wal-clock????
????????clock_t?????????????????????????time.h????У???????????????????壺
????#ifndef _CLOCK_T_DEFINED
????typedef long clock_t;
????#define _CLOCK_T_DEFINED
????#endif
???????????clock_t?????????????????????time.h????У????????????????CLOCKS_PER_SEC??????????????????ж???????????????????????????ù??clock()/CLOCKS_PER_SEC?????????????????????????
???????????????????????????????????
#include<iostream.h>
#include<time.h>
void main()
{
clock_t start??finish;
double totaltime;
start=clock();
…… //??????????????????????
finish=clock();
totaltime=(double)(finish-start)/CLOCKS_PER_SEC;
cout<<"
??????????????"<<totaltime<<"??"<<endl;
}
?????????????????ó??????????????????б?????????????ɡ?
??????????????????????????????????????????????????о????????б????????????????У????????д???????????????????е????????????????????????п?????????????????????????????????????????????????????????????п?0.01???????????????????????з?????1000?Σ?Ч?????????????
?????????????????ЩС???飬?????????LP???????????????????СС?????
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11