- void OnStart()
- {
- long length=10000000;
- string a="a",b="b",c;
-
- uint starttime=GetTickCount(),finishtime;
- long i;
- for(i=0;i<length;i++)
- {
- c=a+b;
- }
- finishtime=GetTickCount();
- Print("time for 'c = a + b' = ",(finishtime-starttime)," milliseconds, i = ",i);
- }
复制代码
|