| 466 | #endif |
| 467 | |
| 468 | TimePoint getCurrentTime() |
| 469 | { |
| 470 | #if defined(__QNX__) |
| 471 | uint64_t const currentCycles = ClockCycles(); |
| 472 | uint64_t const cyclesPerSecond = SYSPAGE_ENTRY(qtime)->cycles_per_sec; |
| 473 | // Return current timestamp in ms. |
| 474 | return static_cast<TimePoint>(currentCycles) * 1000. / cyclesPerSecond; |
| 475 | #else |
| 476 | return std::chrono::high_resolution_clock::now(); |
| 477 | #endif |
| 478 | } |
| 479 | |
| 480 | //! |
| 481 | //! \struct SyncStruct |
no outgoing calls
no test coverage detected