Modified to use the high precision counter for timestamps