mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2025-07-03 16:25:35 +00:00
20 lines
454 B
C++
20 lines
454 B
C++
#pragma once
|
|
|
|
#include "Common.h"
|
|
#include "TServer.h"
|
|
|
|
class TPPSMonitor : public IThreaded {
|
|
public:
|
|
explicit TPPSMonitor(TServer& Server);
|
|
|
|
void operator()() override;
|
|
|
|
void SetInternalPPS(int NewPPS) { mInternalPPS = NewPPS; }
|
|
void IncrementInternalPPS() { ++mInternalPPS; }
|
|
[[nodiscard]] int InternalPPS() const { return mInternalPPS; }
|
|
|
|
private:
|
|
TServer& mServer;
|
|
bool mShutdown { false };
|
|
int mInternalPPS { 0 };
|
|
}; |