switched time measurement to only measure calculation time