1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Improve fixes for warnings as per request

This commit is contained in:
Tobias Widlund
2018-06-30 15:36:06 +02:00
parent 1c467a5847
commit b6cce4ddb6
4 changed files with 22 additions and 19 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
#include "stdio.h"
#include "TracyCallstack.hpp"
#include <cstdio>
#ifdef TRACY_HAS_CALLSTACK
+4 -4
View File
@@ -775,10 +775,10 @@ void Profiler::CalibrateDelay()
auto mindiff = std::numeric_limits<int64_t>::max();
for( int i=0; i<Iterations * 10; i++ )
{
const auto t0_inner = GetTime();
const auto t1_inner = GetTime();
const auto dt_inner = t1_inner - t0_inner;
if( dt_inner > 0 && dt_inner < mindiff ) mindiff = dt_inner;
const auto t0i = GetTime();
const auto t1i = GetTime();
const auto dti = t1i - t0i;
if( dti > 0 && dti < mindiff ) mindiff = dti;
}
m_resolution = mindiff;