add measure_func
add measure_block
rename measure to measure_iter