mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-19 00:57:35 +02:00
fixed CR issue
This commit is contained in:
parent
84da976383
commit
c2588e0120
1 changed files with 2 additions and 2 deletions
|
@ -107,10 +107,10 @@ int PerfStat::DumpStats(char** array) {
|
|||
// Destructor handles recording all of our stats
|
||||
PerformanceWarning::~PerformanceWarning() {
|
||||
double end = usecTimestampNow();
|
||||
double elapsedmsec = (end - _start)/1000.0;
|
||||
double elapsedmsec = (end - _start) / 1000.0;
|
||||
if (_renderWarningsOn && elapsedmsec > 1) {
|
||||
if (elapsedmsec > 1000) {
|
||||
double elapsedsec = (end - _start)/1000000.0;
|
||||
double elapsedsec = (end - _start) / 1000000.0;
|
||||
printLog("WARNING! %s took %lf seconds\n", _message, elapsedsec);
|
||||
} else {
|
||||
printLog("WARNING! %s took %lf milliseconds\n", _message, elapsedmsec);
|
||||
|
|
Loading…
Reference in a new issue