fixed cpp performance timer