reusable benchmarking macro that measures microseconds