1
0
mirror of synced 2025-01-28 18:55:56 +01:00
ImHex/plugins/builtin/source/content/footer_items.cpp
2021-06-07 18:13:54 +02:00

21 lines
443 B
C++

#include <hex/plugin.hpp>
#include <windows.h>
#include <psapi.h>
namespace hex::plugin::builtin {
void addFooterItems() {
ContentRegistry::Interface::addFooterItem([] {
static float framerate = 0;
if (ImGui::HasSecondPassed()) {
framerate = ImGui::GetIO().Framerate;
}
ImGui::TextUnformatted(hex::format("FPS {0:.2f}", framerate).c_str());
});
}
}