timing within a loop

I'd like to suggest you pass that through the IDE's auto format tool, and re post.