2021-03-08, 12:35 PM
You just get the tick count at the start of your code and at the end where it is supposed to stop.
Code:
new tickcountstart,tickcountend;
tickcountstart=GetTickCount();
printf("Start: %d",tickcountstart);
CreateDynamicObject(...);
CreateDynamicObject(...);
CreateDynamicObject(...);
CreateDynamicObject(...);
CreateDynamicObject(...);
tickcountend=GetTickCount();
printf("End: %d",tickcountend);
printf("Difference: %d - %d = %d",tickcountend, tickcountstart, tickcountend-tickcountstart);