YSTest
PreAlpha_b500_20140530
The YSLib Test Project
|
帧速率计数器。 更多...
#include <ShellHelper.h>
Public 成员函数 | |
FPSCounter (std::chrono::nanoseconds={}) | |
构造:使用指定计时间隔下界。 更多... | |
now_tick size_t | Refresh () |
刷新:更新计数器内部计数。 更多... | |
Public 属性 | |
std::chrono::nanoseconds | MinimalInterval |
计时间隔下界。 更多... | |
Private 属性 | |
std::chrono::nanoseconds | last_tick |
内部计数。 更多... | |
std::chrono::nanoseconds | now_tick |
size_t | refresh_count |
刷新计数。 更多... | |
NowTick | |
DefGetter (const ynothrow, std::chrono::nanoseconds, LastTick, last_tick) DefGetter(const ynothrow | |
取内部计数。 更多... | |
YSLib::FPSCounter::FPSCounter | ( | std::chrono::nanoseconds | s = {} | ) |
YSLib::FPSCounter::DefGetter | ( | const ynothrow | , |
std::chrono::nanoseconds | , | ||
LastTick | , | ||
last_tick | |||
) | const |
取内部计数。
size_t YSLib::FPSCounter::Refresh | ( | ) |
刷新:更新计数器内部计数。
在文件 ShellHelper.cpp 第 121 行定义.
参考 platform::GetHighResolutionTicks(), last_tick, MinimalInterval, now_tick, YSLib::Drawing::r, refresh_count , 以及 YB_UNLIKELY.
|
private |
std::chrono::nanoseconds YSLib::FPSCounter::MinimalInterval |
|
private |
在文件 ShellHelper.h 第 392 行定义.
参考自 Refresh().
YSLib::FPSCounter::NowTick |
在文件 ShellHelper.h 第 418 行定义.
|
private |