My Machine details : 32bit OS (win-7) , dual core , clock speed : 2.93Ghz , language used = c#
I have for loop
for ( long d = 0 d<= K ; d++)
{
//no instrucitons
}
if K is any long number.
What would be the formula to calculate time required (in sec) to complete this loop ?
You could use the Stopwatch.Elapsed Property of Stopwatch class