mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 13:09:52 +02:00
some cleanup pre CR
This commit is contained in:
parent
94529d54e8
commit
239aa1ed49
2 changed files with 5 additions and 9 deletions
|
@ -104,14 +104,6 @@ int PerfStat::DumpStats(char** array) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Constructor handles starting the warning timer
|
|
||||||
PerformanceWarning::PerformanceWarning(bool renderWarnings, const char* message) {
|
|
||||||
_start = usecTimestampNow();
|
|
||||||
_message = message;
|
|
||||||
_renderWarningsOn = renderWarnings;
|
|
||||||
// need to also store the args...
|
|
||||||
}
|
|
||||||
|
|
||||||
// Destructor handles recording all of our stats
|
// Destructor handles recording all of our stats
|
||||||
PerformanceWarning::~PerformanceWarning() {
|
PerformanceWarning::~PerformanceWarning() {
|
||||||
double end = usecTimestampNow();
|
double end = usecTimestampNow();
|
||||||
|
|
|
@ -88,7 +88,11 @@ private:
|
||||||
const char* _message;
|
const char* _message;
|
||||||
bool _renderWarningsOn;
|
bool _renderWarningsOn;
|
||||||
public:
|
public:
|
||||||
PerformanceWarning(bool renderWarnings, const char* message);
|
PerformanceWarning(bool renderWarnings, const char* message) :
|
||||||
|
_start(usecTimestampNow()),
|
||||||
|
_message(message),
|
||||||
|
_renderWarningsOn(renderWarnings) { };
|
||||||
|
|
||||||
~PerformanceWarning();
|
~PerformanceWarning();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue