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