| 1061 | } |
| 1062 | |
| 1063 | double Application::getGPUTime() const noexcept { |
| 1064 | const bgfx::Stats* stats = bgfx::getStats(); |
| 1065 | if (stats->gpuTimeEnd < stats->gpuTimeBegin) { |
| 1066 | return 0; |
| 1067 | } |
| 1068 | return s_cast<double>(stats->gpuTimeEnd - stats->gpuTimeBegin) / s_cast<double>(stats->gpuTimerFreq); |
| 1069 | } |
| 1070 | |
| 1071 | double Application::getLogicTime() const noexcept { |
| 1072 | return _logicTime; |