change time capturing common to halide programs