Measure function in progress, debugging and testing