mirror of
https://github.com/spice2x/spice2x.github.io.git
synced 2026-08-02 06:40:42 -07:00
22 lines
378 B
C++
22 lines
378 B
C++
#pragma once
|
|
|
|
#include <chrono>
|
|
#include "overlay/window.h"
|
|
|
|
namespace overlay::windows {
|
|
|
|
class FPS : public Window {
|
|
private:
|
|
std::chrono::system_clock::time_point start_time;
|
|
|
|
public:
|
|
|
|
FPS(SpiceOverlay *overlay);
|
|
|
|
void calculate_initial_window() override;
|
|
void build_content() override;
|
|
|
|
bool should_flip = false;
|
|
};
|
|
}
|