I for loops php, c, piton gibi çeşitli platformlarda yürütme zamanı ölçmek istiyorum, Java, javascript ... Bunu nasıl ölçebilirsiniz?
Ben bu platformları biliyorum bu yüzden ben bu bahsediyorum:
for (i = 0; i < 1000000; i++)
{
}
Ben döngü içinde bir şey ölçmek istemiyorum.
Biraz değişiklik:
@all Some of the friends of mine are saying compiler will optimize this code making this loop a useless loop. I agree with this. we can add a small statement like some incremental statement, but the fact is I just want to calculate the execution time of per iteration in a loop in various languages. By adding a incremental statement will add up the execution time and that will effect the results, cause on various platforms, execution time for incrementing a value also differ and that will make a result useless. In short, in better way I should ask:
I WANT TO CALCULATE THE EXECUTION TIME OF PER ITERATION IN A LOOP on Various PLATFORMS..HOW CAN DO THIS???
--- düzenlemek
I came to know about Python Profilers Profiler modules ...which evaluate cpu time... absolute time.. Any suggestions???Meanwhile i am working on this...