diff --git a/src/utils/profiler.cpp b/src/utils/profiler.cpp index 2f8b5bcc6..cb273d910 100644 --- a/src/utils/profiler.cpp +++ b/src/utils/profiler.cpp @@ -287,7 +287,7 @@ void Profiler::draw() if (m_first_capture_sweep) m_capture_report_buffer->getStdStream() << "\"" << m.name << "\";"; else - m_capture_report_buffer->getStdStream() << (int)std::round((m.end - m.start) * 1000) << ";"; + m_capture_report_buffer->getStdStream() << (int)round((m.end - m.start) * 1000) << ";"; } core::rect pos((s32)( x_offset + factor*m.start ), (s32)( y_offset + i*line_height ), diff --git a/src/utils/profiler.hpp b/src/utils/profiler.hpp index 99759413e..11d41a93c 100644 --- a/src/utils/profiler.hpp +++ b/src/utils/profiler.hpp @@ -24,6 +24,8 @@ #include #include #include +#include +#include class Profiler; @@ -60,7 +62,7 @@ struct ostreambuf : public std::basic_streambufsetp(buffer, buffer + bufferLength); } };