add for loop to increase time measurement accuracy