* Return a timestamp with \c TIMESTAMP_PRECISION ticks per second precision. * The basis of the timestamp is implementation defined, but the value should be steady, * so differences can be taken to reliably measure intervals. */
| 234 | * so differences can be taken to reliably measure intervals. |
| 235 | */ |
| 236 | static TimingMeasurement GetPerformanceTimer() |
| 237 | { |
| 238 | using namespace std::chrono; |
| 239 | return (TimingMeasurement)time_point_cast<microseconds>(high_resolution_clock::now()).time_since_epoch().count(); |
| 240 | } |
| 241 | |
| 242 | |
| 243 | /** |
no test coverage detected