Add asserts to check for faililng QueryPerformance* calls in precise_time_ns
Closes #2675.