Add support for saving timing file during benchmark