High performance timer to measure compute time